DOC Increase execution speed of plot_sgd_comparison#21610
DOC Increase execution speed of plot_sgd_comparison#21610thomasjpfan merged 8 commits intomainfrom unknown repository
Conversation
…n to increase execution speed
|
@sveneschlbeck it'd be useful to post the output of the example (text, and image if it produces any) before and after your change, and the time it takes to run on your machine (you can do there's also failing lint tests in your PR, you should enable |
|
@adrinjalali I ran test using the |
…nto speed_increased_example_modlinear
There was a problem hiding this comment.
Thank you for the PR @sveneschlbeck !
I think that setting warm_start=True changes the narrative of the example. The model trained on a previous round will influence the model in the next.
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
|
@thomasjpfan Agreed, we also had a similar discussion at another example and concluded that it may change the example's character. Also, some examples are never run multiple times in a row, making the param toothless. Will remove Thanks for the input! |
|
Please apply |
|
@adrinjalali Will do |
|
The error on circleci should be fixed by syncing with |
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>


#21598 @sply88 @adrinjalali @cakiki
Adapted a few things in the module
examples/linear_model/plot_sgd_comparisonto make it a bit faster:max_iterparameter to a point where execution is still fast but parameter doesn't kill the optimization processwarm_startto a bunch of classifiers