Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Nov 10, 2021

#21598 @adrinjalali @sply88

Increased speed by decreasing the number of splits from 250 to 100 while maintaining more or less the same result (decreasing number of features is contra-productive because it does not save time but makes the model significantly worse).
before_svm

after_svm

@adrinjalali adrinjalali changed the title Increased speed by decreasing number of splits Increased speed by decreasing number of splits plot_svm_scale_c.py Nov 12, 2021
@adrinjalali
Copy link
Member

Did you try 50 splits? Also, you could reset the CI by sending an empty commit by git commit --allow-empty -m "trigger CI"

@ghost
Copy link
Author

ghost commented Nov 12, 2021

@adrinjalali Will check. Back with the new results soon

@ghost
Copy link
Author

ghost commented Nov 12, 2021

@adrinjalali Good call, it did indeed still perform pretty close to the original but time is down 5 sec more..
newsvm_before
newsvm_after
.

@adrinjalali adrinjalali mentioned this pull request Nov 12, 2021
41 tasks
@adrinjalali
Copy link
Member

This looks good, what do the times look like now?

@ghost
Copy link
Author

ghost commented Nov 12, 2021

@adrinjalali The pictures directly above are related to that improvement.

The results were:

  • Reducing from 250 to 100: Before: 25, After: 11
  • Reducing from 250 to 50: Before: 24, After: 5

@adrinjalali
Copy link
Member

@glemaitre maybe?

@glemaitre glemaitre changed the title Increased speed by decreasing number of splits plot_svm_scale_c.py MNT speed up example plot_svm_scale_c.py Nov 24, 2021
@glemaitre glemaitre merged commit fd18ad2 into scikit-learn:main Nov 24, 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.

Thanks @sveneschlbeck LGTM Merging

@ghost ghost deleted the speed_increased_example_svm branch November 24, 2021 13:15
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Nov 29, 2021
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Dec 24, 2021
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.

2 participants