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

ValueError Raised During TSNE Projection #19

Open
droully opened this issue Aug 30, 2024 · 0 comments
Open

ValueError Raised During TSNE Projection #19

droully opened this issue Aug 30, 2024 · 0 comments

Comments

@droully
Copy link

droully commented Aug 30, 2024

When attempting to perform a projection using TSNE with the following code, a ValueError is encountered:

tg = tp.TopOGraph(n_eigs=15, n_jobs=-1, verbosity=3)
tg.fit(X)
tg.transform(X)
tg.project(projection_method='t-SNE')

ValueError: The parameter init="pca" cannot be used with metric="precomputed".

This error arises due to a change in scikit-learn version 1.2, where the default value for the init parameter in TSNE was updated from "random" to "pca". Explicitly setting the init parameter to "random" should fix this.

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