topkitems {CFilt} | R Documentation |
Recommendation Function
Description
Functions that provide the top k items to be recommended to the user Id_u.
Usage
topkitems(CF, Id_u, k = 10, type = "user")
Arguments
CF |
A CF objec |
Id_u |
the user Id |
k |
an integer |
type |
"user" or "item" |
Author(s)
Jessica Kubrusly
Examples
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)
[Package CFilt version 0.3.0 Index]