-
Notifications
You must be signed in to change notification settings - Fork 691
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
Add an example of fast prediction via BLAS to documentation #427
Comments
One of the reasons of the There are tricky balancing issues here:
For that reason I have so far been reluctant to add this to the library. If you're interested, we could add a guide for fast predictions to the documentation? |
A scenario which I encountered myself in a couple of projects and which several people I consulted also had is the following:
In this scenario, one needs a function computing recommendations for a batch of users. |
I’m closing this issue because it has been inactive for a long time. If you still encounter the problem, please open a new issue. Thank you! |
There is already one optimisation PR for predict method: #105
But sometimes one probably can do it in a simpler way (just using numpy with BLAS):
https://github.com/inpefess/lightfm/blob/predict_comparison/examples/batch_predict/predicting_with_matrix_multiplication.ipynb
@maciejkula what do you think about adding another, say predict_numpy/predict_all method like that for batch predictions? If yes, I can prepare a PR from the example code above.
The text was updated successfully, but these errors were encountered: