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

[FIX] Naive Bayes: fix predictions with unknown values #6564

Merged
merged 2 commits into from
Sep 1, 2023

Conversation

thocevar
Copy link
Contributor

@thocevar thocevar commented Sep 1, 2023

Issue

Partially addresses #6553.

Description of changes

There was an off-by-one error in the Naive Bayes classifier, which resulted in treating unknown feature values as the largest values instead of a separate unknown value (which doesn't contribute towards either class).

Includes
  • Code changes
  • Tests
  • Documentation

@janezd janezd merged commit 38ccb8b into biolab:master Sep 1, 2023
21 of 23 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