umutphp/laravel-model-recommendation

Similarity Calculation Takes To Much Time

umutphp opened this issue · 0 comments

As the number of products gets bigger, the duration of the similarity calculation grows dramatically. Instead of using matrix calculation (n^2 operations for n products), we need to find a way to reduce the number of operations. Possible solutions;

  1. Selecting a random product and use it to calculate the similarity scores of the products.
  2. Creating an imaginary product with unique values.