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

Model input: CSR vs COO sparse matrices ? (Different results) #555

Open
jimzer opened this issue Sep 4, 2020 · 1 comment
Open

Model input: CSR vs COO sparse matrices ? (Different results) #555

jimzer opened this issue Sep 4, 2020 · 1 comment

Comments

@jimzer
Copy link

jimzer commented Sep 4, 2020

I noticed a strange issue using the library with the sparse matrices format.

If I use the same interaction matrix but as CSR while training, I get different results when evaluating compared to using a COO matrix for interactions.
Is it a normal behavior ?

Also how can I be certain of the format I should use for all LighFM input:
lightfm.Dataset returns all COO matrices when building interactions and features, but in the source it's said that user_features and item_features should be as CSR.

Thanks for you help !

@hcygeorge
Copy link

I tried both csr and coo matrix on train/test data, and I got nearly the same result(mAP) of model.
But I'm curious about which data format is better for training lightFM model, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants