Skip to content

TST Replace boston in ensemble test_bagging#16921

Merged
thomasjpfan merged 2 commits intoscikit-learn:masterfrom
lucyleeow:test_bagging
Apr 15, 2020
Merged

TST Replace boston in ensemble test_bagging#16921
thomasjpfan merged 2 commits intoscikit-learn:masterfrom
lucyleeow:test_bagging

Conversation

@lucyleeow
Copy link
Copy Markdown
Member

Reference Issues/PRs

Towards #16155

What does this implement/fix? Explain your changes.

Replace boston dataset with diabetes dataset in sklearn/ensemble/tests/test_bagging.py.

Also amended test_parallel_regression. I might be mistaken but is the purpose of test_parallel_regression to ensure that the results with n_jobs equal to 1, 2 and 3 are all equal? y1 and y3 are both n_jobs=1. Also n_jobs is set and then overwritten before being used.

Any other comments?


ensemble = BaggingRegressor(DecisionTreeRegressor(),
n_jobs=1,
n_jobs=3,
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.

Although this change is small, it is not related to the title. This can be done with another PR. The main reason for creating a new PR is such that we can discuss this change independently of the rest of the changes. Secondly, less diffs makes this PR easier to merge.

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.

Point taken, bad habits!

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

Thank you for the PR @lucyleeow !

@thomasjpfan thomasjpfan changed the title Replace boston in ensemble test_bagging TST Replace boston in ensemble test_bagging Apr 15, 2020
@thomasjpfan thomasjpfan merged commit cb9ddbb into scikit-learn:master Apr 15, 2020
@lucyleeow lucyleeow deleted the test_bagging branch May 12, 2020 18:38
gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 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.

3 participants