Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Cold start problem #592

Open
dubovikmaster opened this issue Jul 11, 2022 · 1 comment
Open

User Cold start problem #592

dubovikmaster opened this issue Jul 11, 2022 · 1 comment

Comments

@dubovikmaster
Copy link

Please tell me how it is possible to solve the cold start problem for users within the CosineRecomender model?
Let's say I have a user whose interactions were not in the training set. Need to retrain the model?

@benfred
Copy link
Owner

benfred commented Jul 13, 2022

With the ItemItem models (CosineRecommender etc) - you don't need to retrain the model at all. The model learns an item-item similarity matrix, and when generating recommendations uses the 'user_items' parameter to look up the items the user has liked and for each item the user has liked, uses the stored item similarities to generate a set of recommendations. This means that as long as the users interactions are passed to the recommend function in the user_items parameter this should still work fine. This doesn't solve the general cold start case (ie, for a new user you might not have any interactions at all) - but should hopefully work for your use case.

For the Matrix Factorization models this isn't the case - but with the ALS model you can pass 'recalculate_user=True' to generate a new user embedding for the user on the fly, and still get recommendations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants