Skip to content

[MRG] API kwonly for neural_network module#17002

Merged
jnothman merged 1 commit intoscikit-learn:masterfrom
NicolasHug:kwonly_nn
Apr 23, 2020
Merged

[MRG] API kwonly for neural_network module#17002
jnothman merged 1 commit intoscikit-learn:masterfrom
NicolasHug:kwonly_nn

Conversation

@NicolasHug
Copy link
Copy Markdown
Member

@NicolasHug NicolasHug commented Apr 22, 2020

Partially addresses #15005

@NicolasHug NicolasHug changed the title [MRG] MNT kwonly for neural_network module [MRG] API kwonly for neural_network module Apr 22, 2020
@NicolasHug
Copy link
Copy Markdown
Member Author

"""
def __init__(self, hidden_layer_sizes=(100,), activation="relu",
@_deprecate_positional_args
def __init__(self, hidden_layer_sizes=(100,), activation="relu", *,
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.

I'd prefer no positional arg here, but happy either way.

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

@jnothman jnothman left a comment

Choose a reason for hiding this comment

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

Okay

@jnothman jnothman merged commit 49d213d into scikit-learn:master Apr 23, 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.

3 participants