Skip to content

trees and forests min_impurity_split deprecation #12240

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

Conversation

amueller
Copy link
Member

@amueller amueller commented Oct 1, 2018

Working on #11992.

This needs more work inside the tree code, though.

@sklearn-lgtm
Copy link

This pull request introduces 3 alerts when merging 6aa8807 into 59b15c5 - view on LGTM.com

new alerts:

  • 3 for Unused import

Comment posted by LGTM.com

@amueller amueller force-pushed the min_impurity_split_deprecation branch from 2ccaf85 to 5b7ad42 Compare October 2, 2018 20:01
@amueller
Copy link
Member Author

amueller commented Oct 2, 2018

This deprecation is also broken because not specifying a value will lead to a change in behavior between versions :-/

@sklearn-lgtm
Copy link

This pull request introduces 2 alerts when merging 5b7ad42 into dfd009d - view on LGTM.com

new alerts:

  • 2 for Unused import

Comment posted by LGTM.com

RandomForestRegressor(bootstrap=True, criterion='mse', max_depth=2,
max_features='auto', max_leaf_nodes=None,
min_impurity_decrease=0.0, min_impurity_split=None,
min_impurity_decrease=0.0,
min_samples_leaf=1, min_samples_split=2,
min_weight_fraction_leaf=0.0, n_estimators=100, n_jobs=None,
oob_score=False, random_state=0, verbose=0, warm_start=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is part of docstring, but take care with pep8

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry I don't follow

@amueller amueller added this to the 0.20.1 milestone Oct 16, 2018
@jnothman jnothman modified the milestones: 0.20.1, 0.21 Oct 17, 2018
Copy link
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.

This deprecation is also broken because not specifying a value will lead to a change in behavior between versions :-/

Do you mean because we're currently defaulting to min_impurity_split=1e-7 being applied together with min_impurity_decrease? Are we able to hope that this will only rarely affect results?

@amueller
Copy link
Member Author

Yes because right now min_impurity_split=1e-7 by default. There's a bunch of tests failing. We could hope it only affects results infrequently but given the number of failing tests, I don't think we can say "rare".

@jnothman
Copy link
Member

jnothman commented Oct 17, 2018 via email

@amueller amueller modified the milestones: 0.20.1, 0.21 Oct 24, 2018
@amueller
Copy link
Member Author

closing as we need to wait longer now

@amueller amueller closed this Dec 14, 2018
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.

4 participants