8000 MAINT make plot_stock_market deterministic by fixing random state by tabeak · Pull Request #25671 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MAINT make plot_stock_market deterministic by fixing random state #25671

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

Closed

Conversation

tabeak
Copy link
Contributor
@tabeak tabeak commented Feb 23, 2023

Reference Issues/PRs

related to #17568

What does this implement/fix? Explain your changes.

Added random state to the manifold.LocallyLinearEmbedding for fixing randomness.
It will avoid that the image is changing at each example generation.

Any other comments?

@adrinjalali @glemaitre

@glemaitre glemaitre changed the title Set random state for plot_stock_market.py MAINT make plot_stock_market deterministic by fixing random state Feb 24, 2023
@jeremiedbb
Copy link
Member

Thanks for the PR @tabeak, but since there's no randomness with the current eigen_solver="dense", I don't think there's anything to change here. It's already deterministic. With that in mind I'm closing it.

@jeremiedbb jeremiedbb closed this Feb 24, 2023
@glemaitre
Copy link
Member

I agree with @jeremiedbb. Here, we might be able to reduce the size of the image by tweaking matplotlib parameter but I am not sure about it.

To convince ourself that there is no randomness, the graph created in stable and dev is exactly the same.

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.

3 participants
0