8000 MNT speed up plot_nca_classification.py by siavrez · Pull Request #21771 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MNT speed up plot_nca_classification.py #21771

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 2 commits into from
Nov 26, 2021

Conversation

siavrez
Copy link
Contributor
@siavrez siavrez commented Nov 23, 2021

Almost 90 percent of runtime is related directly to step size and changing it from 0.01 to 0.015 improves the runtime by 50 percent.
I'm not sure it even deserves a PR but based on my observation the difference in quality of boundaries is negligible.

with 0.01 step size: 25.3 second runtime

a1

b1

with 0.015 step size: 10.6 second runtime

a2

b2

Reference Issues/PRs
#21598

What does this implement/fix? Explain your changes.

Any other comments?

@adrinjalali adrinjalali mentioned this pull request Nov 24, 2021
41 tasks
@glemaitre glemaitre changed the title accelerate plot_nca_classification.py MNT speed up plot_nca_classification.py Nov 25, 2021
Copy link
Member
@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM

@ogrisel ogrisel merged commit 660e43a into scikit-learn:main Nov 26, 2021
@ogrisel
Copy link
Member
ogrisel commented Nov 26, 2021

Thanks!

glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Nov 29, 2021
* accelerate plot_nca_classification.py

* change step size to 0.05
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
* accelerate plot_nca_classification.py

* change step size to 0.05
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Dec 24, 2021
* accelerate plot_nca_classification.py

* change step size to 0.05
glemaitre pushed a commit that referenced this pull request Dec 25, 2021
* accelerate plot_nca_classification.py

* change step size to 0.05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0