Skip to content

Conversation

@jonibr22
Copy link
Contributor

@jonibr22 jonibr22 commented Dec 4, 2025

Description

I've added the small epsilon value (1e-8) in the (100.0 * correct / (len(user_ids) - skipped) calculation to avoid zero division error when fitting the model. This change is applied to both BPR and WBPR.

Related Issues

#675

Checklist:

  • I have added tests.
  • I have updated the documentation accordingly.
  • I have updated README.md (if you are adding a new model).
  • I have updated examples/README.md (if you are adding a new example).
  • I have updated datasets/README.md (if you are adding a new dataset).

Copy link
Member

@qtuantruong qtuantruong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the fix

@qtuantruong qtuantruong merged commit 069ce51 into PreferredAI:master Dec 4, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants