View source: R/estimaterating.R
estimaterating | R Documentation |
Function that provide an estimate of the user's rating for the item.
estimaterating(
CF,
Id_u,
Id_i,
type = "user",
neighbors = ifelse(type == "user", nrow(CF$MU) - 1, ncol(CF$MU) - 1)
)
CF |
A CF object |
Id_u |
the user Id |
Id_i |
the item Id |
type |
"user" or "item" |
neighbors |
number of neighbors in the calculation. |
Jessica Kubrusly
objectCF_r <- CFbuilder(Data = movies[1:500,], Datatype = "ratings",
similarity = "cosine")
estimaterating(CF=objectCF_r,Id_u="35",Id_i="Despicable Me 2")
estimaterating(CF=objectCF_r,Id_u="35",Id_i="Her")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.