item_predict | R Documentation |
Get item-to-item recommendations from a SAR model
item_predict(object, items, k = 10)
object |
A SAR model object. |
items |
A vector of item IDs. |
k |
The number of recommendations to obtain. |
A data frame containing one row per item ID supplied.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.