Skip to content

[MAINT] Separate unit tests in test_tree.py for pickling and min_impurity_decrease #22915

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

Merged
merged 6 commits into from
Mar 25, 2022

Conversation

adam2392
Copy link
Member

@adam2392 adam2392 commented Mar 21, 2022

Reference Issues/PRs

Discussed in OH today, but the pickling test should be separate from min_impurity_decrease

What does this implement/fix? Explain your changes.

I separated the two tests. I also added additional lines to test the properties of each Tree, which should be done imo as well.

Any other comments?

I don't think this needs a change log, or should I add one?

cc: @ogrisel and @glemaitre

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

Thanks for the PR

@adam2392 adam2392 requested a review from thomasjpfan March 23, 2022 19:46
Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

LGTM

@glemaitre
Copy link
Member

LGTM as well

@glemaitre glemaitre merged commit 67eb4e5 into scikit-learn:main Mar 25, 2022
@adam2392 adam2392 deleted the fixtreetest branch March 30, 2022 01:08
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Apr 6, 2022
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.

3 participants