Skip to content

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

Merged
janezd merged 2 commits into
biolab:masterfrom
thocevar:naive_bayes
Sep 1, 2023
Merged

[FIX] Naive Bayes: fix predictions with unknown values#6564
janezd merged 2 commits into
biolab:masterfrom
thocevar:naive_bayes

Conversation

@thocevar
Copy link
Copy Markdown
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
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