[MRG] Made plot_rbm_logistic_classification faster#14342
Merged
amueller merged 1 commit intoscikit-learn:masterfrom Jul 13, 2019
Merged
[MRG] Made plot_rbm_logistic_classification faster#14342amueller merged 1 commit intoscikit-learn:masterfrom
amueller merged 1 commit intoscikit-learn:masterfrom
Conversation
NicolasHug
approved these changes
Jul 13, 2019
Member
NicolasHug
left a comment
There was a problem hiding this comment.
LGTM, thanks @Timsaur .
The plotting seems to be the slowest part now, I doubt we'll be able to make it much faster than this
Member
|
there's also ways to speed up plotting ;) But this is a good improvement I think. |
Contributor
Author
|
Cool, thank you!
…On Sat, Jul 13, 2019 at 5:16 PM Andreas Mueller ***@***.***> wrote:
Merged #14342 <#14342>
into master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14342?email_source=notifications&email_token=AJOSS5YWGPEK5EAHF7JR64TP7JH2NA5CNFSM4IDBS6A2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSPQQBGQ#event-2480996506>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJOSS533IRFVDOAGYGIRCCDP7JH2NANCNFSM4IDBS6AQ>
.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
What does this implement/fix? Explain your changes.
Partially addresses #13383 by making plot_rbm_logistic_classification faster.
Changed n_iter from 20 to 10, makes the program run 20% faster while preserving the original intent.
Any other comments?
Using the original 20 n_iter hyperparameter: takes 5.829 seconds with following scores:
Logistic regression using RBM features:
Logistic regression using raw pixel features:
With new scores, takes 4.146 seconds with following scores:
Logistic regression using RBM features:
Logistic regression using raw pixel features: