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

Reproduce results of fitted model #36

Closed
rusad opened this issue Jun 21, 2017 · 2 comments
Closed

Reproduce results of fitted model #36

rusad opened this issue Jun 21, 2017 · 2 comments

Comments

@rusad
Copy link

rusad commented Jun 21, 2017

Every time when i run model.fit() i obtain different values in model.user_factors and model.item_factors. How can i get reproducible result after model fitting?

@benfred
Copy link
Owner

benfred commented Jun 21, 2017

The initial factors are randomly assigned - and the output will be different every time afterwards (though the overall loss should converge to the same value).

To remove variability - the unittests for that function seed the RNG with a fixed value: https://github.com/benfred/implicit/blob/master/tests/als_test.py#L65 .

@rusad
Copy link
Author

rusad commented Jun 22, 2017

Ok, thanks

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