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
Attribute Error #24
Comments
Hi, I can't say for sure but potentially it may be that you actually have the wrong umap. Due to name collisions the UMAP algorithm code is under the name
you will get a different package that does not to what you want. If that is the case then you'll want
If that is not the problem then there is something else wrong that is going to be harder to diagnose. Either way, please let me know, and sorry about the naming confusion on pip. |
I have tried this, unfortunately, had no luck regarding the name confusion on pip. I am going to look at this again, I will let you know if there is any progress. |
Thanks. I'm sorry I can't be more help but I currently can't reproduce the problem (or even have any idea what might be causing it). Please keep me updated. I'm sure it is frustrating and I appreciate your patience and willingness to try and work through it. |
I encountered this error due to having named my python-file umap.py. Felt quite silly and changed filename, which solved the problem. |
I still get this error and have tried the umap-learn trick using conda install :( I am using Mac OS X (Sierra) |
I also had the same issue ( As a workaround |
This seemed to get me around the original error (after also switching to installing umap-learn instead), but then my kernel died on attempting umap.UMAP().fit_transform(). (Datalab running on a Google Cloud Dataproc cluster) |
The best I can offer is that you need to make sure that the mapping based |
I am getting this problem too now upon my very first attempt to use UMAP. :( Running from a Jupyter notebook with python 3.6 on an Ubuntu machine. |
Hey - I think you need to first uninstall the first attempt of UMAP and
then do it again with UMAP learn
On Sun, Oct 7, 2018 at 1:48 PM Benz-Tracxpoint ***@***.***> wrote:
I am getting this problem too now upon my very first attempt to use UMAP.
:(
I have taken care to only install umap-learn and not umap to begin with.
The import umap.umap_ as umap workaround fails too.
Running from a Jupyter notebook with python 3.6 on an Ubuntu machine.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AbSMoYXL2ejdNtHZMrpQDH7sC-N8nj5Gks5uij56gaJpZM4Qn1f5>
.
--
Sent from Iphone. Please pardon the brevity/typos.
|
I have the same problem , but at first my code worked without any problem but after some pip install of different library files it happens , |
I wish I could help, but I really don't know what could have caused the
issue -- especially if it was working initially. Installing other libraries
may have pulled dependencies that had a name collision of some kind;
alternatively PYTHONPATH related things may be going astray? If you can I
would highly recommend using conda and separate conda environments to
manage things. I wish I could be more help.
…On Wed, Oct 17, 2018 at 6:11 AM SaKOLOURI ***@***.***> wrote:
I have the same problem , but at first my code worked without any problem
but after some pip install of different library files it happens ,
umapdim=umap.UMAP(n_neighbors=20)
x_train_umap=umapdim.fit_transform(x_train,y=y_train)
x_test_umap=umapdim.transform(x_test)
fig,[ax1,ax2]=plt.subplots(1,2,figsize=(10,5))
ax1.scatter(x_train_umap[:,0],x_train_umap[:,1],c=y_train)
ax2.scatter(x_test_umap[:,0],x_test_umap[:,1],c=y_test)
plt.show()
svm.fit(x_train_umap,y_train)
y_test_predict=svm.predict(x_test_umap)
print((1.*(y_test_predict==y_test)).sum()/y_test.shape[0])
I had tried the above solution but they're not worked on my issue ., I
have umap-learn and umap is not installed on my system .
is there any way to see witch cause this conflict ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ALaKBRRjbhpcDc-S4hHFEzGngVdQFGsJks5ulwJsgaJpZM4Qn1f5>
.
|
I uninstall all the installed component by pip , and after that i installed
Anaconda in new drive , and the problem solved and my code is working in
this new installation again , how ever , thanks a lot for your kind replay.
wish the best for you/با بهترین آرزوها
saeed kolouri
On Wed, Oct 17, 2018 at 8:29 PM Leland McInnes <notifications@github.com>
wrote:
… I wish I could help, but I really don't know what could have caused the
issue -- especially if it was working initially. Installing other libraries
may have pulled dependencies that had a name collision of some kind;
alternatively PYTHONPATH related things may be going astray? If you can I
would highly recommend using conda and separate conda environments to
manage things. I wish I could be more help.
On Wed, Oct 17, 2018 at 6:11 AM SaKOLOURI ***@***.***>
wrote:
> I have the same problem , but at first my code worked without any problem
> but after some pip install of different library files it happens ,
> umapdim=umap.UMAP(n_neighbors=20)
> x_train_umap=umapdim.fit_transform(x_train,y=y_train)
> x_test_umap=umapdim.transform(x_test)
> fig,[ax1,ax2]=plt.subplots(1,2,figsize=(10,5))
> ax1.scatter(x_train_umap[:,0],x_train_umap[:,1],c=y_train)
> ax2.scatter(x_test_umap[:,0],x_test_umap[:,1],c=y_test)
> plt.show()
> svm.fit(x_train_umap,y_train)
> y_test_predict=svm.predict(x_test_umap)
> print((1.*(y_test_predict==y_test)).sum()/y_test.shape[0])
> I had tried the above solution but they're not worked on my issue ., I
> have umap-learn and umap is not installed on my system .
> is there any way to see witch cause this conflict ?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#24 (comment)>, or
mute
> the thread
> <
https://github.com/notifications/unsubscribe-auth/ALaKBRRjbhpcDc-S4hHFEzGngVdQFGsJks5ulwJsgaJpZM4Qn1f5
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/An-7MYM5c7ehDyZMoZNmZ04amyg2wWayks5ul2HWgaJpZM4Qn1f5>
.
|
This is basically the solution. Just uninstall and do a fresh install.
Basiclaly, I think it should be put somewhere clearly to "NOT" do pip
install umap as this conflicts then later tries. Though I have friends who
have same OS and conda versions and for them that worked.
…______________________________________________________
Dr. Sabyasachi Dasgupta
Postdoctoral Research Fellow
Department of Physics Tel: +1 647 332 9967 (M)
University of Toronto Email: sabyadg.softbio@gmail.com
60 St. George Street dasgupta@physics.utoronto.com
M5S 1A7 Toronto, Canada http://individual.utoronto.ca/softbio/
_____________________________________________________
On Wed, Oct 17, 2018 at 4:01 PM SaKOLOURI ***@***.***> wrote:
I uninstall all the installed component by pip , and after that i installed
Anaconda in new drive , and the problem solved and my code is working in
this new installation again , how ever , thanks a lot for your kind replay.
wish the best for you/با بهترین آرزوها
saeed kolouri
On Wed, Oct 17, 2018 at 8:29 PM Leland McInnes ***@***.***>
wrote:
> I wish I could help, but I really don't know what could have caused the
> issue -- especially if it was working initially. Installing other
libraries
> may have pulled dependencies that had a name collision of some kind;
> alternatively PYTHONPATH related things may be going astray? If you can I
> would highly recommend using conda and separate conda environments to
> manage things. I wish I could be more help.
>
> On Wed, Oct 17, 2018 at 6:11 AM SaKOLOURI ***@***.***>
> wrote:
>
> > I have the same problem , but at first my code worked without any
problem
> > but after some pip install of different library files it happens ,
> > umapdim=umap.UMAP(n_neighbors=20)
> > x_train_umap=umapdim.fit_transform(x_train,y=y_train)
> > x_test_umap=umapdim.transform(x_test)
> > fig,[ax1,ax2]=plt.subplots(1,2,figsize=(10,5))
> > ax1.scatter(x_train_umap[:,0],x_train_umap[:,1],c=y_train)
> > ax2.scatter(x_test_umap[:,0],x_test_umap[:,1],c=y_test)
> > plt.show()
> > svm.fit(x_train_umap,y_train)
> > y_test_predict=svm.predict(x_test_umap)
> > print((1.*(y_test_predict==y_test)).sum()/y_test.shape[0])
> > I had tried the above solution but they're not worked on my issue ., I
> > have umap-learn and umap is not installed on my system .
> > is there any way to see witch cause this conflict ?
> >
> > —
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <#24 (comment)>,
or
> mute
> > the thread
> > <
>
https://github.com/notifications/unsubscribe-auth/ALaKBRRjbhpcDc-S4hHFEzGngVdQFGsJks5ulwJsgaJpZM4Qn1f5
> >
> > .
> >
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#24 (comment)>, or
mute
> the thread
> <
https://github.com/notifications/unsubscribe-auth/An-7MYM5c7ehDyZMoZNmZ04amyg2wWayks5ul2HWgaJpZM4Qn1f5
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AbSModMi8oppe-Y_Z7pmo7uqe5HgP398ks5ul4x8gaJpZM4Qn1f5>
.
|
Yes sir ,I agree with you in this case , I'm a newcomer on python , but from my former experiences on other programming software (specially on Siemens software's ) it's some times the only way. |
I was facing the same problem too, I'm suing windows, conda versions, and what i did is that it just worked ! |
Not sure if this situation helps anyone (or is expected), but I ran into this situation when I tried to run transform() on new data, from a joblib pickle of a previous umap run, where that pickle was created from a previous release of umap. I'm able to run transform() again after recreating the joblib pickle with the new version. |
Maybe we can look into by the joblib pickle works with scikit-learn models, but fails here... |
Actually, I have used the following: pip install umap-learn Now on the notebook: It works well. |
Thanks for your excellent work on this package @lmcinnes . I know the problem is not related to the package itself, but just wanted to document it for tracking purposes. FYI I also ran into the same issue yesterday. I think I installed the other |
this has worked for me |
I just encountered this common problem today. Working from within a Jupyter Notebook I performed:
Then
caused the common error here. I installed 'umap-learn' but to no avail. I corrected the issue by uninstalling 'umap', then also uninstalling 'umap-learn', then reinstalling 'umap-learn' and restarting my kernel:
With this solution, I was then successful with:
|
The proper way to install UMAP is documented in the README.md. Many people assume the package is called In general: Read the README. |
Hi there, these are my system specs:
macOS Sierra 10.12.3 (16D32)
I have installed umap through pip. When I try to run it this the error message that comes up. I'm unsure what the problem is, any ideas?
The text was updated successfully, but these errors were encountered: