crs: Collaborative Filtering

Description Usage Arguments Details Value See Also Examples

View source: R/crs.R

Description

Collaborative Filtering

Usage

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

Arguments

dataset

Dataset

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")

Details

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

Value

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

See Also

summary.crs to summarize results

plot.crs to plot results if the actual ratings are available

Examples

1
2
crs(ratings, id = "Users", prod = "Movies", pred = c("M6", "M7", "M8", "M9", "M10"), 
    rate = "Ratings", data_filter = "training == 1") %>% str()

radiant-rstats/radiant.model documentation built on Nov. 13, 2018, 7 a.m.