Skip to content

trees and forests min_impurity_split deprecation#12240

Closed
amueller wants to merge 1 commit intoscikit-learn:masterfrom
amueller:min_impurity_split_deprecation
Closed

trees and forests min_impurity_split deprecation#12240
amueller wants to merge 1 commit intoscikit-learn:masterfrom
amueller:min_impurity_split_deprecation

Conversation

@amueller
Copy link
Copy Markdown
Member

@amueller amueller commented Oct 1, 2018

Working on #11992.

This needs more work inside the tree code, though.

@sklearn-lgtm
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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

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
Copy Markdown
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
Copy Markdown
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
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.

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
Copy Markdown
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
Copy Markdown
Member

jnothman commented Oct 17, 2018 via email

@amueller amueller modified the milestones: 0.20.1, 0.21 Oct 24, 2018
@amueller
Copy link
Copy Markdown
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