RecSysDevCode icon indicating copy to clipboard operation
RecSysDevCode copied to clipboard

《推荐系统开发实战》代码及勘误

Results 12 RecSysDevCode issues
Sort by recently updated
recently updated
newest added

movies = dict() for (sim_user,sim) in newNU[:self.k]: for movieID in self.train[sim_user].keys(): movies.setdefault(movieID,0) #书中少了这句代码 movies[movieID] += sim * self.train[sim_user][movieID] newMovies = sorted(movies.items(), key = lambda k:k[1], reverse=True) return newMovies

27页错别字,局限与改为局限于