50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


CFilt (version 0.3.0)

topkitems: 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

Jessica Kubrusly

Examples

Run this code
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)

Run the code above in your browser using DataLab