-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
[MRG] Accelerate examples/manifold/plot_compare_methods.py #21635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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...)
@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
@adrinjalali I changed back the perplexity. Do you think the result looks OK? (See image above or here) |
…n#21635) * Accelerate plot_compare_methods.py * Change tsne perplexity
…n#21635) * Accelerate plot_compare_methods.py * Change tsne perplexity
…n#21635) * Accelerate plot_compare_methods.py * Change tsne perplexity
Reference Issues/PRs
#21598
What does this implement/fix? Explain your changes.
Reduce the time from 14 sec to 8 sec.
max_iter
from 100 to 50.n_iter
from 1000 (default) to 250, and decreaseperplexity
from 30 (default) to 10.random_state
for reproducibility.Before:

After:

Any other comments?