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

Extra NaN check for conjugate gradient ALS model #107

Merged
merged 1 commit into from
May 23, 2018
Merged

Conversation

benfred
Copy link
Owner

@benfred benfred commented May 23, 2018

With synthetic data and a large regularization parameter, the CG ALS model
would converge so that some users/items factors had 0 vectors for solutions.
The CG update would fail in this case setting all the factors to NaN. (#106).

Fix by detecting when this would occur and aborting. A previous
check handled the case inside the loop: #19 (comment)

With synthetic data and a large regularization parameter, the CG ALS model
would converge so that some users/items factors had 0 vectors for solutions.
The CG update would fail in this case setting all the factors to NaN.
(#106).

Fix by detecting when this would occur and aborting. A previous
check handled the case inside the loop:
#19 (comment), this handles
the case where rsold = 0 entering the loop.
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

Successfully merging this pull request may close these issues.

1 participant