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

'UMAP' object has no attribute '_knn_search_index'. Did you mean: 'knn_search_index'? #37

Open
pakiessling opened this issue Nov 26, 2024 · 2 comments

Comments

@pakiessling
Copy link
Collaborator

visualizer.save("Xenium-text-visualizer.vis")

/hpcwork/p0020567/enviroments/overlpy2/lib/python3.12/site-packages/anndata/_core/aligned_df.py:68: ImplicitModificationWarning: Transforming to str index.
  warnings.warn("Transforming to str index.", ImplicitModificationWarning)
Traceback (most recent call last):
  File "/rwthfs/rz/cluster/work/rwth1209/projects/Overlpy_Manuscript/test.py", line 26, in <module>
    visualizer.save("Xenium-text-visualizer.vis")
  File "/hpcwork/p0020567/enviroments/overlpy2/lib/python3.12/site-packages/ovrlpy/_ovrlp.py", line 1206, in save
    pickle.dumps(self.embedder_2d._knn_search_index)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'UMAP' object has no attribute '_knn_search_index'. Did you mean: 'knn_search_index'?

Hi, bekomme den Fehler für umap-learn 0.5.7

Ist das viellecht die falsche Version?

@sebastiantiesmeyer
Copy link
Collaborator

sebastiantiesmeyer commented Nov 26, 2024 via email

@niklasmueboe
Copy link
Collaborator

Maybe it is better to pickle the whole UMAP (and also PCA) object? That way we are not dependent on future API changes in other packages.

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

3 participants