search for: lemiremaclachlan_sdm05

Displaying 1 result from an estimated 1 matches for "lemiremaclachlan_sdm05".

2009 Jun 16
0
Help implementing a simple Python port
...hon to tell where I might be going wrong. Any suggestions? [1] http://en.wikipedia.org/wiki/Slope_One#Slope_one_collaborative_filtering_for_rated_resources [2] http://www.serpentine.com/wordpress/wp-content/uploads/2006/12/slope_one.py.txt [3] http://www.daniel-lemire.com/fr/documents/publications/lemiremaclachlan_sdm05.pdf # take a 'training' set, tr.set and a vector with some missing ratings, d pred=function(tr.set,d) { tr.set=rbind(tr.set,d) n.items=ncol(tr.set) # tally frequencies to use as weights freqs=sapply(1:n.items, function(i) { unlist(lapply(1:n.items, function(j) { sum(!(i==j)&!is.na(...