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
Segmentation fault (core dump) at the prediction #254
Comments
How did you install LightFM? Can you post the inputs you are using and the functions you are calling? |
Thank you for your responsiveness. |
|
Can you experiment and try to narrow down with what arguments, or in what conditions, does the problem happen? |
Yes
|
What shape is |
The shape of lines is (100, 8) |
OK, so you have a 100 users/items in your dataset? Is it a dataset you can share so that I could reproduce the problem? |
Yes, that's right. My datasets are not real. I generated them for the test. So, I can give them. Do you have an email address where I can send the files ? |
Can you please make a gist or a github repo with the full code that I can run? |
Here you can find the repo https://github.com/phenric/reco |
Your code doesn't actually work from line 34 onwards: https://github.com/phenric/reco/blob/master/recommander.py#L34 |
When I comment those lines, I still have a segmentation fault. Do you have any idea about the issue ? What am I wrong ? |
I know what the issue is. You're passing a ludicrously large user_id into the |
For future reference, LightFM expects that user and item ids be contiguous and start at zero. This means that if you have 10 users the largest possible user index you should be passing in to |
Thank you very much for your help ! |
Yes, it was your error, but the library should never segfault. So thank you for the report! |
I'm using the WARP to create my model. To fit it, I've no problem. But for the prediction, I've a segmentation fault (core dump).
How can I solve it ?
Thx
I'm using Ubuntu 16.04 with python 2.7.
The text was updated successfully, but these errors were encountered: