Learn R Programming

radiant.model (version 0.8.0)

crs: Collaborative Filtering

Description

Collaborative Filtering

Usage

crs(dataset, id, prod, pred, rate, data_filter = "")

Arguments

dataset

Dataset name (string). This can be a dataframe in the global environment or an element in an r_data list from Radiant

id

String with name of the variable containing user ids

prod

String with name of the variable with product ids

pred

Products to predict for

rate

String with name of the variable with product ratings

data_filter

Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "training == 1")

Value

A data.frame with the original data and a new column with predicted ratings

Details

See https://radiant-rstats.github.io/docs/model/crs.html for an example in Radiant