Skip to content

Conversation

sami-ka
Copy link
Contributor

@sami-ka sami-ka commented Dec 12, 2021

Reference Issues/PRs

#21598

What does this implement/fix? Explain your changes.

It changes the parameters of the SGDClassifier in order to accelerate the run time of plot_model_complexity_influence.py. This will help to speed up the CI as it takes part in it.
The major part of the time is spent in _plain_sgd. By changing two parameters (tol and n_iter_no_change), the time spent in this function is reduced and the graph used to illustrate the notions involved in the example stays relevant.
On my computer, the time for this example dropped from 13 to 6.5 seconds.

Any other comments?

@adrinjalali adrinjalali mentioned this pull request Dec 15, 2021
41 tasks
@glemaitre glemaitre self-assigned this Jan 18, 2022
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 after checking the plots. I think that we a x2 here. This should be enough to merge it.

@glemaitre glemaitre merged commit 1d69784 into scikit-learn:main Jan 18, 2022
@glemaitre
Copy link
Member

Thanks @drskd Merging.

@sami-ka
Copy link
Contributor Author

sami-ka commented Jan 18, 2022

Thanks for the review @glemaitre !

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