powered by
Functions that returns the pearson similarity between two items or users.
pearson(CF, type, i, j)
A CF objec
"user" or "item"
"user" or "item" Id or index
"user" or "item" Id or index#'
Jessica Kubrusly
objectCF_r <- CFbuilder(Data = movies[1:500,], Datatype = "ratings", similarity = "pearson") pearson(CF=objectCF_r,type = "user",i="2",j="3") pearson(CF=objectCF_r,type = "item",i="Her",j="Frozen")
Run the code above in your browser using DataLab