apple / turicreate

Turi Create simplifies the development of custom machine learning models.
BSD 3-Clause "New" or "Revised" License
11.2k stars 1.14k forks source link

item_similarity_recommender not consistent with docs formula #3425

Open mats-claassen opened 3 years ago

mats-claassen commented 3 years ago

Hi. The documentation for the item_similarity_recommender states that it computes predictions as:

Screen Shot 2021-10-08 at 16 01 00

for cosine and jaccard similarities.

However, the library seems to compute the predictions as:

Screen Shot 2021-10-08 at 16 31 38

where #Iu is the number of ratings user u has given. This would be the same as replacing SIM(i, j) in the denominator of the original formula with 1.

Could someone confirm this? Is it a documentation error?