-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] accelerate plot_successive_halving_iterations.py example #21598 #21612
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
[MRG] accelerate plot_successive_halving_iterations.py example #21598 #21612
Conversation
@sply88 could you please paste both before and after outputs of the example Your change is trigerring an issue in the doc build. The CI fails. |
Seems like |
@NicolasHug @rth could maybe help here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Syncing with upstream should fix the issue. I think it is related to #21607 and how numpy is being updated in the min-doc build when installing the latest version of PyWavelets
…ing_iterations.py
Works. Thanks for pointing that out @thomasjpfan |
|
||
clf = RandomForestClassifier(n_estimators=20, random_state=rng) | ||
clf = RandomForestClassifier(n_estimators=15, random_state=rng) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, result looks better with a unique winner. Only takes around 1s more on my machine. Thanks again for fine tuning!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…earn#21598 (scikit-learn#21612) * accelerate plot_successive_halving_iterations.py example scikit-learn#21598 * n_estimators back to 20
…earn#21598 (scikit-learn#21612) * accelerate plot_successive_halving_iterations.py example scikit-learn#21598 * n_estimators back to 20
…earn#21598 (scikit-learn#21612) * accelerate plot_successive_halving_iterations.py example scikit-learn#21598 * n_estimators back to 20
Speeds up ../examples/model_selection/plot_successive_halving_iterations.py (Issue #21598) by
n_estimators
max_features
For me example runs in 5 sec now (previously plus 13).
Reducing number of samples also reduces number of iterations during search (now 5, previously 6). Final figure:

Original figure:
