powered by
Get item-to-item recommendations from a SAR model
item_predict(object, items, k = 10)
A SAR model object.
A vector of item IDs.
The number of recommendations to obtain.
A data frame containing one row per item ID supplied.
# NOT RUN { data(ms_usage) mod <- sar(ms_usage) # item recomendations for a set of item IDs items <- unique(ms_usage$item)[1:5] item_predict(mod, items=items) # }
Run the code above in your browser using DataLab