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

BUG - Random seed in _plotting #952

Closed
andreacortis opened this issue Jan 23, 2023 · 1 comment
Closed

BUG - Random seed in _plotting #952

andreacortis opened this issue Jan 23, 2023 · 1 comment

Comments

@andreacortis
Copy link

embeddings = UMAP(n_neighbors=2, n_components=2, metric='hellinger').fit_transform(embeddings)

embeddings = UMAP(n_neighbors=2, n_components=2, metric='hellinger').fit_transform(embeddings)

Right now every time you visualize the intertopic distance you get a new visualization. This is because the UMAP instance does not have a fixed random seed.

@MaartenGr
Copy link
Owner

Thanks for sharing this. The difficulty here is that it might hurt the performance of UMAP when a random_state is set which is why I initially decided not to use that here. I might change it but I will have to test the quality of the output as well as the wall time for larger datasets.

MaartenGr added a commit that referenced this issue Feb 9, 2023
@MaartenGr MaartenGr mentioned this issue Feb 9, 2023
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

2 participants