Skip to content

MNT Deprecate X_idx_sorted in tree module - #17614

Merged
thomasjpfan merged 4 commits into
scikit-learn:masterfrom
alfaro96:deprecate_X_idx_sorted_tree
Jun 17, 2020
Merged

thomasjpfan merged 4 commits into
scikit-learn:masterfrom
alfaro96:deprecate_X_idx_sorted_tree

Conversation

@alfaro96

Copy link
Copy Markdown
Member

Reference Issues/PRs

Closes #16818.
Related with #14907.

What does this implement/fix? Explain your changes.

With the deprecation of the presort hyper-parameter, the use of the X_idx_sorted in the fit method has no longer effect.

This PR X_idx_sorted from the ensemble and tree module and deprecates from public API.

@glemaitre glemaitre left a comment

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.

It looks good. Could you add an entry in what's new?

Comment thread sklearn/tree/_classes.py Resolved
Comment thread sklearn/tree/_classes.py Resolved
@alfaro96

Copy link
Copy Markdown
Member Author

Thanks @glemaitre for the review!

I have already committed the suggested changes.

@thomasjpfan thomasjpfan left a comment

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.

Thank you for the PR @alfaro96 !

Comment thread sklearn/tree/_splitter.pyx Resolved
Comment thread sklearn/tree/_tree.pxd Resolved
@alfaro96

Copy link
Copy Markdown
Member Author

Thank you for the PR @alfaro96 !

Thank you for the review @thomasjpfan!

@thomasjpfan thomasjpfan left a comment

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.

LGTM

@thomasjpfan
thomasjpfan merged commit e4ebcbc into scikit-learn:master Jun 17, 2020
@alfaro96
alfaro96 deleted the deprecate_X_idx_sorted_tree branch June 18, 2020 15:10
dsandeep0138 pushed a commit to dsandeep0138/scikit-learn that referenced this pull request Jun 21, 2020
rubywerman pushed a commit to MLH-Fellowship/scikit-learn that referenced this pull request Jun 24, 2020
viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 2020
jayzed82 pushed a commit to jayzed82/scikit-learn that referenced this pull request Oct 22, 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.

Unused parameter X_idx_sorted in tree classifiers

3 participants