-
Notifications
You must be signed in to change notification settings - Fork 680
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
Assert error in BPR without user/item features #133
Comments
This assertion is meant to prevent you from passing interaction matrices of incompatible shapes into Can you check that this is not the case? |
silly mistake. I think you are right :)
…On Fri, Dec 16, 2016 at 4:45 PM, maciejkula ***@***.***> wrote:
This assertion is meant to prevent you from passing interaction matrices
of incompatible shapes into fit and predict. In this case, I think your
test matrix has a larger first dimension than your train matrix, and so
there are some users in the test set that were not in the original train
set.
Can you check that this is not the case?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#133 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AWJKwyejmIm5lziE8PUg6jfxCOvgwRAsks5rIsA9gaJpZM4LPQ2c>
.
|
Arguably the library should be more informative about what's wrong. I'll look into providing a better error message. |
I'm using precision_at_k from lightFM library with the code below.
the size of user and item embeddings is correct (25 for both) but I'm getting:
Notice that I'm not using user/item features.
The text was updated successfully, but these errors were encountered: