[MRG] Accelerate examples/manifold/plot_compare_methods.py#21635
Merged
adrinjalali merged 2 commits intoscikit-learn:mainfrom Feb 8, 2022
Merged
[MRG] Accelerate examples/manifold/plot_compare_methods.py#21635adrinjalali merged 2 commits intoscikit-learn:mainfrom
adrinjalali merged 2 commits intoscikit-learn:mainfrom
Conversation
ogrisel
reviewed
Nov 12, 2021
Member
ogrisel
left a comment
There was a problem hiding this comment.
Personally, I find that the result on t-SNE to be qualitatively too degraded for this change to be acceptable.
I think we should focus our effort to improve the speed of t-SNE in scikit-learn instead (e.g. maybe through #20254 and follow-up).
+1 for the change in MDS params (it seems qualitatively better with early stopping...)
Contributor
Author
Member
|
@yuanx749 we can merge this if you change the t-sne parameters to something that the results look not too degraded. |
dd0cd49 to
bc4aaed
Compare
Contributor
Author
|
@adrinjalali I changed back the perplexity. Do you think the result looks OK? (See image above or here) |
adrinjalali
approved these changes
Feb 8, 2022
glemaitre
pushed a commit
to glemaitre/scikit-learn
that referenced
this pull request
Feb 9, 2022
…n#21635) * Accelerate plot_compare_methods.py * Change tsne perplexity
ilivans
pushed a commit
to ilivans/scikit-learn
that referenced
this pull request
Feb 10, 2022
…n#21635) * Accelerate plot_compare_methods.py * Change tsne perplexity
thomasjpfan
pushed a commit
to thomasjpfan/scikit-learn
that referenced
this pull request
Mar 1, 2022
…n#21635) * Accelerate plot_compare_methods.py * Change tsne perplexity
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
#21598
What does this implement/fix? Explain your changes.
Reduce the time from 14 sec to 8 sec.
max_iterfrom 100 to 50.n_iterfrom 1000 (default) to 250, and decreaseperplexityfrom 30 (default) to 10.random_statefor reproducibility.Before:

After:

Any other comments?