topkitems | R Documentation |
Functions that provide the top k items to be recommended to the user Id_u.
topkitems(CF, Id_u, k = 10, type = "user")
CF |
A CF objec |
Id_u |
the user Id |
k |
an integer |
type |
"user" or "item" |
Jessica Kubrusly
objectCF_r <- CFbuilder(Data = movies[1:500,], Datatype = "ratings",
similarity = "pearson")
u1 = rownames(objectCF_r$MU)[1]
topkitems(CF=objectCF_r,Id_u = u1)
u2 = rownames(objectCF_r$MU)[2]
topkitems(CF=objectCF_r,Id_u = u2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.