8000 TST Speed-up test_partial_dependence.test_output_shape by jeremiedbb · Pull Request #25895 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

TST Speed-up test_partial_dependence.test_output_shape #25895

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 3 commits into from
Mar 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sklearn/inspection/tests/test_partial_dependence.py
5C42
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def test_output_shape(Estimator, method, data, grid_resolution, features, kind):
# - multi-task regressors

est = Estimator()
if hasattr(est, "n_estimators"):
est.set_params(n_estimators=2) # speed-up computations

# n_target corresponds to the number of classes (1 for binary classif) or
# the number of tasks / outputs in multi task settings. It's equal to 1 for
Expand Down
0