Skip to content

[MRG] API kwonly for naive_bayes#17003

Merged
adrinjalali merged 2 commits intoscikit-learn:masterfrom
NicolasHug:kwonly_naivebayes
Apr 24, 2020
Merged

[MRG] API kwonly for naive_bayes#17003
adrinjalali merged 2 commits intoscikit-learn:masterfrom
NicolasHug:kwonly_naivebayes

Conversation

@NicolasHug
Copy link
Copy Markdown
Member

Partially addresses #15005

@NicolasHug
Copy link
Copy Markdown
Member Author

Copy link
Copy Markdown
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

thanks @NicolasHug


def __init__(self, alpha=1.0, fit_prior=True, class_prior=None):
@_deprecate_positional_args
def __init__(self, *, alpha=1.0, fit_prior=True, class_prior=None):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

alpha is usually allowed positional in the rest of the library.

@adrinjalali adrinjalali added this to the 0.23 milestone Apr 23, 2020
@jnothman
Copy link
Copy Markdown
Member

jnothman commented Apr 23, 2020 via email

Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

I am okay with making alpha keyword only in this context.

@adrinjalali adrinjalali merged commit 0d04de2 into scikit-learn:master Apr 24, 2020
gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants