Skip to content

D01 10772 "alpha"#2

Merged
SeanApplebaum merged 1 commit intomainfrom
d01-10772-alpha
Mar 7, 2021
Merged

D01 10772 "alpha"#2
SeanApplebaum merged 1 commit intomainfrom
d01-10772-alpha

Conversation

@alex-greff
Copy link
Copy Markdown

Fixes scikit-learn#10772

What does this implement/fix? Explain your changes.

For MultinomialNB and BernoulliNB it is documented that their alpha values
can be set to 0 to disable smoothing. However, a warning that alpha is too
small is printed when the user attempts to do that. The purpose of this issue
was to stop the warning from occurring when using alpha=0 with
MultinomialNB and BernoulliNB instances.

Any other comments?

None

@alex-greff alex-greff requested a review from SeanApplebaum March 6, 2021 19:46
@SeanApplebaum
Copy link
Copy Markdown

Looks great!

@SeanApplebaum SeanApplebaum merged commit 22d9d97 into main Mar 7, 2021
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.

BernoulliNB and MultinomialNB documentation for alpha=0

2 participants