gamboviol / bpr

Bayesian Personalized Ranking
212 stars 87 forks source link

Fixing ValueError in "while j in user_items" #1

Open moustaki opened 10 years ago

moustaki commented 10 years ago

Line 140 doesn't behave as expected when using a sparse structure as an user_items array - converting it to a dense matrix seems to fix the issue.