Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix #11219: DOC instructions for changing default value of certain parameters #11283

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

Closed
wants to merge 2 commits into from

Conversation

melrchen
Copy link

@melrchen melrchen commented Jun 15, 2018

Fixes #11219
Added some instructions in the dev guide with an example to show how to change the default value of certain parameters and add a deprecation warning for other users.

@amueller
Copy link
Member

Maybe use a simpler example or make up an example. There is a lot of code that doesn't really illustrate the issue well. It would be good to change how the default value is changed to None and then show how the fit method does the validation and raises the warning.

warnings.warn("'n_estimators''s default value was changed to 100
n=100):
n = n
warnings.warn("'n_estimators''s default value was changed to 100
Copy link
Member

Choose a reason for hiding this comment

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

the warning should be in fit, not init.

Choose a reason for hiding this comment

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

@qinhanmin2014
Copy link
Member

@melrchen please refer to merged PRs (#9379, #10331). Open PRs have not been accepted by the community.

@jnothman
Copy link
Member

jnothman commented Jun 17, 2018 via email

@amueller
Copy link
Member

@jnothman I'm happy to have 'deprecated' be the standard.

@amueller
Copy link
Member

@melrchen are you still working on this?

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.

6 participants