Open Selva163 opened 1 year ago
@benfred @Focus could you please provide any suggestion on this
For real-time, load the saved(pickle) model, get the latest interactions in the last 5 mins, use partial_fit_users and partial_fit_items method to incrementally train on the new data.
For the partial_fit_items/users - are you just including the results from the last 5 minutes? If so - I don't think that will work. The partial fit functions allow you to only calculate factors for a subset of users/items - but for the users being updated you will need their full history, rather than just the most recently interacted items
What about new users? Will they be accomodated too?
Trying to use ALS for real-time recommendations. however seeing differences in recommended items between the model trained on full data vs trained on new incremental data. Steps followed,
However, for validation, I again trained the model with (last 30 days + last 5 mins) and got the recommendations.
The results from incremental training and retraining are quite different.
How can we get the same recommendations from both model? Idea is to save few mins of entire retraining. Not able to see any (real-life) examples of partial_fit_users or partial_fit_items except on doc and als_test.py