Skip to content

[MRG+1] FIX/DOC Improve documentation regarding non-determinitic tree behaviour#8452

Merged
raghavrv merged 2 commits intoscikit-learn:masterfrom
glemaitre:is/8443
Feb 26, 2017
Merged

[MRG+1] FIX/DOC Improve documentation regarding non-determinitic tree behaviour#8452
raghavrv merged 2 commits intoscikit-learn:masterfrom
glemaitre:is/8443

Conversation

@glemaitre
Copy link
Copy Markdown
Member

@glemaitre glemaitre commented Feb 24, 2017

Reference Issue

Fixes #8443

What does this implement/fix? Explain your changes.

Add details regarding the non-deterministic behaviour of decision tree.

Any other comments?

Edited:

  • DecisionTreeClassifier
  • DecisionTreeRegressor
  • GradientBoostingClassifier
  • GradientBoostingRegressor
  • RandomForestRegressor
  • RandomForestClassifier

@glemaitre
Copy link
Copy Markdown
Member Author

@jmschrei @raghavrv Did you have something like this in mind?

@jmschrei
Copy link
Copy Markdown
Member

This is good. We should also update the website soon as that is the most visible documentation. You edited RandomForestClassifier and RandomForestRegressor as well, yes?

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 24, 2017

Codecov Report

Merging #8452 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #8452   +/-   ##
=======================================
  Coverage   95.47%   95.47%           
=======================================
  Files         342      342           
  Lines       60907    60907           
=======================================
  Hits        58154    58154           
  Misses       2753     2753
Impacted Files Coverage Δ
sklearn/ensemble/gradient_boosting.py 95.79% <ø> (ø)
sklearn/ensemble/forest.py 98.16% <ø> (ø)
sklearn/tree/tree.py 98.41% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 067adad...b628dc2. Read the comment docs.

@agramfort
Copy link
Copy Markdown
Member

+1 for MRG

@agramfort agramfort changed the title [MRG] FIX/DOC Improve documentation regarding non-determinitic tree behaviour [MRG+1] FIX/DOC Improve documentation regarding non-determinitic tree behaviour Feb 25, 2017
@glemaitre
Copy link
Copy Markdown
Member Author

glemaitre commented Feb 25, 2017

@jmschrei Yes I did the change for the random forest, ijust forgot to add it in the first post

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.

otherwise LGTM

-----
The features are always randomly permuted at each split. Therefore,
the best found split may vary, even with the same training data,
``max_feature=n_features`` and ``bootstrap=False``, if the improvement
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.

*max_features

@raghavrv raghavrv merged commit cc3ce58 into scikit-learn:master Feb 26, 2017
@raghavrv
Copy link
Copy Markdown
Member

Thx @glemaitre :)

sergeyf pushed a commit to sergeyf/scikit-learn that referenced this pull request Feb 28, 2017
… behaviour (scikit-learn#8452)

* FIX/DOC Improve documentation regarding non-determinitic tree behaviour

* FIX correct max_features
@Przemo10 Przemo10 mentioned this pull request Mar 17, 2017
herilalaina pushed a commit to herilalaina/scikit-learn that referenced this pull request Mar 26, 2017
… behaviour (scikit-learn#8452)

* FIX/DOC Improve documentation regarding non-determinitic tree behaviour

* FIX correct max_features
massich pushed a commit to massich/scikit-learn that referenced this pull request Apr 26, 2017
… behaviour (scikit-learn#8452)

* FIX/DOC Improve documentation regarding non-determinitic tree behaviour

* FIX correct max_features
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
… behaviour (scikit-learn#8452)

* FIX/DOC Improve documentation regarding non-determinitic tree behaviour

* FIX correct max_features
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
… behaviour (scikit-learn#8452)

* FIX/DOC Improve documentation regarding non-determinitic tree behaviour

* FIX correct max_features
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
… behaviour (scikit-learn#8452)

* FIX/DOC Improve documentation regarding non-determinitic tree behaviour

* FIX correct max_features
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
… behaviour (scikit-learn#8452)

* FIX/DOC Improve documentation regarding non-determinitic tree behaviour

* FIX correct max_features
lemonlaug pushed a commit to lemonlaug/scikit-learn that referenced this pull request Jan 6, 2021
… behaviour (scikit-learn#8452)

* FIX/DOC Improve documentation regarding non-determinitic tree behaviour

* FIX correct max_features
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.

DecisionTreeClassifier should be deterministic for default parameters or documented indicating otherwise

5 participants