umap
umap copied to clipboard
module 'umap' has no attribute 'UMAP'
I tried to run the example code published at https://www.kaggle.com/jack89roberts/the-journey-of-an-image-through-a-neural-network/notebook, but I got a error: "module 'umap' has no attribute 'UMAP'"
Here is the information.
Input...Traceback (most recent call last):
File "/Users/renzha/Library/Application Support/JetBrains/PyCharmCE2021.2/scratches/visualization of cnn.py", line 484, in
How to solve the problem? Thank you.
just found out that umap-learn
need to be installed.
I had umap 0.1.1
installed. But had the same error. Then installed umap-learn 0.5.2
. Still got the error and then uninstalled umap
.
It worked.
from umap import UMAP
I am not able to get this working with anything that I try. I have umap-learn installed, not umap. I have tried importing as above, no luck. Any ideas?
my error is this:
AttributeError: module 'umap' has no attribute 'UMAP'
This worked for me:
from umap.umap_ import UMAP
pip install umap-learn
is still giving error pip install umap-learn==0.5.2
worked for me.
@lmcinnes please apply a patch so that beginners like me can at least start using this awesome library.
Nothing of proposed works for me
pip install umap-learn
is still giving errorpip install umap-learn==0.5.2
worked for me.
my python version is 3.7, and only the method works for me. Thanks for you.