# Recommend

## Convert Rating Matrix

### Input Data

Before using the **Recommender**, the data should be converted into **User-Item Rating matrix** form.&#x20;

| Variables       | Inputs                                                                |
| --------------- | --------------------------------------------------------------------- |
| **Target Data** | Data input                                                            |
| **Matrix Name** | Name of the matrix after conversion  (fill it out at your discretion) |
| **Matrix Type** | Select either 'Real Rating' or 'Binary Rating'                        |
| **User**        | User data                                                             |
| **Item**        | Item data                                                             |
| **Rating**      | Rating data                                                           |

![\[Task Information of Convert Rating Matrix\]](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MJKrvlizZoZIR-uR1Yd%2F-MJL2rdAc7m0D-euJUTA%2Fimage.png?alt=media\&token=eafa5aa0-769f-4ee3-94fe-c92d7b47b0fc)

## Normalize RatingMatrix

### Input Data

|                 | Inputs                                                                   |
| --------------- | ------------------------------------------------------------------------ |
| **Target Data** | Input data of User-Item Rating Matrix Form                               |
| **Matrix Name** | Name of the output after normalization  (fill it out at your discretion) |

![\[Task Information of Normalize RatingMatrix\]](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MJMF1UBPT2ptaXIhlcX%2F-MJMFXtlB5UmEQy5pWTu%2Fimage.png?alt=media\&token=aa77deb9-1ea2-4666-b464-4b6ad27360d8)

## Pair Down Matrix

Used to filter the data for recommendation

### Input Data

|                         | Inputs                                                                                                             |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------ |
| **Rating Matrix**       | Input data of User-Item Rating Matrix Form                                                                         |
| **Output RatingMatrix** | Output Rating matrix                                                                                               |
| **Arguments**           | count/mean/sum of user's rating data selected by User (selected data will be included in the Output Rating Matrix) |

![\[Task Information of Pair Down Matrix\]](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MJMF1UBPT2ptaXIhlcX%2F-MJN6NWcbRYQQW2hRKWx%2Fimage.png?alt=media\&token=f3f946f6-b0db-447c-92fd-bbf13e510d12)

## Gen.EvaluationScheme

Creates an evaluation scheme object from User-Item Rating matrix.&#x20;

### Input Data

|                      | Inputs                                                                                       |
| -------------------- | -------------------------------------------------------------------------------------------- |
| **Rating Matrix**    | Input data of User-Item Rating Matrix Form                                                   |
| **eva. Scheme Name** | Name of an evaluation scheme object created from a dataset  (fill it out at your discretion) |

![\[Task Information of Gen. evaluatingScheme\]](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MJN7Jg91m_nfkMBEcIV%2F-MJN7uAyor2S1_NuttUj%2Fimage.png?alt=media\&token=db23454e-f32a-4b01-b0be-401d2a1c9d3b)

## Evaluate a Recommender

Evaluates a single or a list of recommender model given an evaluation scheme.

### Input Data

|                      | Inputs                                                                                       |
| -------------------- | -------------------------------------------------------------------------------------------- |
| **evaluationScheme** | Input data of User-Item Rating Matrix Form                                                   |
| **evaluate Name**    | Name of an evaluation scheme object created from a dataset  (fill it out at your discretion) |

### Variable Attributes

* **Model Name**: name the evaluation model
* **Type**: Type of the evaluation model ex) ALS, ALS\_implicit, POPULAR, topNList etc.&#x20;
* **Parameter**: a list with parameters for the recommender algorithm (default=NULL)

![\[Task Information for Evaluate a Recommender\]](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MJN9gfcdcHDfvS5FVDC%2F-MJNC3zgKIAKFEyv2R2T%2Fimage.png?alt=media\&token=0ebb6f9a-b33e-40ed-bb7d-72b8c59fa6e1)

## IBCF(binaryRating) & IBCF(realRating)& UBCF(binaryRating)& UBCF(realRating)&#x20;

IBCF(item-based collaborative filtering) model

UBCF(user-based collaborative filtering) model&#x20;

### Input Data

|                 | Inputs                                                                    |
| --------------- | ------------------------------------------------------------------------- |
| **Matrix Name** | Input data of User-Item Rating Matrix Form                                |
| **Model Name**  | Name of an collaborative filtering model (fill it out at your discretion) |

![\[Task Information of IBCF (binaryRating)\]](https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MJNDiJ_7xkBf1loAi0P%2F-MJNGef_LnM4ZNKTZIq-%2Fimage.png?alt=media\&token=a1a503ad-59b5-43e7-a3b5-d97b80651064)

## Workflow Example

[R-Flow Task Example Video](https://www.youtube.com/watch?v=QOUo5_o7OXY) - Recommend

<div align="left"><img src="https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MLYD8h7UTZQ4HnaRv-u%2F-MLYEnazZz4DM5DjnA8w%2Fimage.png?alt=media&#x26;token=65f1b4db-a870-41dc-9591-3e8326125c8f" alt=""></div>

<div align="left"><img src="https://3929524962-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MGaxNdSdRN_L_WNiX4I%2F-MLYD8h7UTZQ4HnaRv-u%2F-MLYFsKAIjgBpJoRMTcL%2Fimage.png?alt=media&#x26;token=4afe9cb4-8711-4227-998d-7abb9146ffb7" alt=""></div>

## R-Package

**Convert Rating Matrix& Normalize RatingMatrix** [**https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6/topics/realRatingMatrix**](https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6/topics/realRatingMatrix)

**Pair Down Matrix:** [**https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6/topics/ratingMatrix**](https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6/topics/ratingMatrix)

**Gen.EvaluationScheme:** [**https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6/topics/evaluationScheme**](https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6/topics/evaluationScheme)

**Evaluate a Recommender:** [**https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6/topics/evaluate**](https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6/topics/evaluate)

**IBCF(binaryRating) & IBCF(realRating)& UBCF(binaryRating)& UBCF(realRating) :** [**https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6**](https://www.rdocumentation.org/packages/recommenderlab/versions/0.2-6)
