-
Notifications
You must be signed in to change notification settings - Fork 436
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
Loaded SVD model with only_unknowns=True, so need create_matrix(), but it finds 0 tuples #9
Comments
Once you've created the model, and stored it in disk, you can load the SVD model again, but (unfortunately) this does not load the original input matrix, as this takes much time. The only way for you to do so would be to load the data again from the raw file. Something like: svd = SVD(filename=sFileTarget) # Loading already computed SVD model
svd.load_data(filename=sFileSource, sep=',', format=dictFormat) # Re-load the matrix each time!
svd.create_matrix() # And (re)create it
(...) |
Great thanks for the reply. Makes sense. And that's still a big lift since compute() is the more time consuming. But now I get this error:
Where the code I have is this:
Such that the last line works fine if I do the full compute. That is, this code works:
And both the working and non-working code are getting the same customer IDs for that print statement:
Thoughts? |
When I run this code:
I get this error:
And it's very right: I'm loading with this code:
Which I had previously generated with this code:
But when I use create_matrix(), I get this:
And nothing works from there, of course.
What might the solution be?
Thanks!
The text was updated successfully, but these errors were encountered: