Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with last user having no ratings
If the last user or item in the interactions matrix passed in had no ratings, the BPR model was failing to fit with an error like: ``` File "implicit/bpr.pyx", line 139, in implicit.bpr.BayesianPersonalizedRanking.fit IndexError: boolean index did not match indexed array along dimension 0; dimension is 43060797 but corresponding boolean dimension is 43060796 ``` Fix by passing the appropiate dimension to bincount.
- Loading branch information