guymorita / recommendationRaccoon

A collaborative filtering based recommendation engine and NPM module built on top of Node.js and Redis. The engine uses the Jaccard coefficient to determine the similarity between users and k-nearest-neighbors to create recommendations. This module is useful for anyone with a database of users, a database of products/movies/items and the desire to give their users the ability to like/dislike and receive recommendations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

callbacks are hitting too many times after input

guymorita opened this issue · comments

added if (results.length === 1 || userId === otherUserId){

which makes it so that it only fires the callback short if it is comparing to only one item or itself.