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

recalculate_user parameter in the recommend() of the als.py #42

Closed
meidata opened this issue Jul 6, 2017 · 4 comments
Closed

recalculate_user parameter in the recommend() of the als.py #42

meidata opened this issue Jul 6, 2017 · 4 comments

Comments

@meidata
Copy link

meidata commented Jul 6, 2017

Hi Ben,

Thanks for the awesome library, i am using the library to create a recommender system.

I am trying to implement my own version of returning the liked items by the user, so can i ask you what do the recalculate_user parameter in the recommend() do in the als.py?

Thank you in advance!

Meiyi

@jbochi
Copy link
Contributor

jbochi commented Jul 6, 2017

recalculate_user allows you to update user's latent factors if the confidence matrix has changed since the training. You can also use this to generate recommendations to users that were not in the training set. I mentioned this feature here: https://medium.com/@jbochi/recommending-github-repositories-with-google-bigquery-and-the-implicit-library-e6cce666c77

@meidata
Copy link
Author

meidata commented Jul 7, 2017

Thanks Juarez, your blog is very useful!

So to summarise,
if you set recaluculate_user = True, it could be :

  1. the user not in the training set (new user)
  2. the user who is in the training set but consumes more items (new items)

In your blog, you set the confidence = 40, can i ask how you choose the value in this parameter?

Super Thanks,

Meiyi

@jbochi
Copy link
Contributor

jbochi commented Jul 7, 2017

Glad you find it useful, Meiyi. 40 was the value used in the original paper "Collaborative Filtering for Implicit Feedback Datasets" paper, but you should definitely do some kind of evaluation to pick the best value or weighting scheme for your dataset.

@meidata
Copy link
Author

meidata commented Jul 12, 2017

Thanks Juarez!!

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