Skip to content
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

Disable randomness in demos? #22

Open
hagenw opened this issue Jan 7, 2020 · 1 comment
Open

Disable randomness in demos? #22

hagenw opened this issue Jan 7, 2020 · 1 comment

Comments

@hagenw
Copy link
Contributor

hagenw commented Jan 7, 2020

I'm not sure if it is a feature or a bug and what is the cause of the randomness appearing for some demos, e.g. here are two results from running:

python demo03_projection.py

demo03_projection1
demo03_projection2

And here from running:

python demo04_clustering.py

demo04_clustering1
demo04_clustering2

Would be nice if the demos would return always the same result.

@hagenw
Copy link
Contributor Author

hagenw commented Jan 14, 2020

You can avoid the random behavior by passing a state to UMAP, e.g. random_state=42 to plot_projections. See also lmcinnes/umap#27

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

No branches or pull requests

1 participant