Skip to content

MNT speed up plot_nca_classification.py#21771

Merged
ogrisel merged 2 commits intoscikit-learn:mainfrom
siavrez:test_everything
Nov 26, 2021
Merged

MNT speed up plot_nca_classification.py#21771
ogrisel merged 2 commits intoscikit-learn:mainfrom
siavrez:test_everything

Conversation

@siavrez
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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