
Last chance! 50% off unlimited learning
Sale ends in
Convert transactional data.table to a binary ratings matrix
AutoRecomDataCreate(data, EntityColName = "CustomerID",
ProductColName = "StockCode", MetricColName = "TotalSales",
ReturnMatrix = FALSE)
This is your transactional data.table. Must include an Entity (typically customer), ProductCode (such as SKU), and a sales metric (such as total sales).
This is the column name in quotes that represents the column name for the Entity, such as customer
This is the column name in quotes that represents the column name for the product, such as SKU
This is the column name in quotes that represents the column name for the metric, such as total sales
Set to FALSE to coerce the object (desired route) or TRUE to return a matrix
A BinaryRatingsMatrix
Other Recommender Systems: AutoMarketBasketModel
,
AutoRecommenderScoring
,
AutoRecommender
# NOT RUN {
RatingsMatrix <- AutoRecomDataCreate(data,
EntityColName = "CustomerID",
ProductColName = "StockCode",
MetricColName = "TotalSales",
ReturnMatrix = TRUE)
# }
Run the code above in your browser using DataLab