Learn R Programming

CFilt (version 0.3.0)

topkusers: Recommendation Function

Description

Functions that provide the top k users to recommend the item Id_i.

Usage

topkusers(CF, Id_i, k = 10, type = "user")

Arguments

CF

A CF objec

Id_i

the item 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")
colnames(objectCF_r$MU)
topkusers(CF = objectCF_r, Id_i = "The Lego Movie")
topkusers(CF = objectCF_r, Id_i = "Her")

Run the code above in your browser using DataLab