lmcinnes / lmcinnes/umap

module 'umap' has no attribute 'UMAP'

Open
#828 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.3k
Forks
871
Avg merge
1d 13h
Merged PRs (30d)
5

Description

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
nvis.umap_layers(range(251))
File "/Users/renzha/Library/Application Support/JetBrains/PyCharmCE2021.2/scratches/visualization of cnn.py", line 244, in umap_layers
pipe_out = umap.UMAP ().fit_transform (pipe_in)
AttributeError: module 'umap' has no attribute 'UMAP'

How to solve the problem? Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Kaggle example and the traceback at nvis.umap_layers, where umap.UMAP().fit_transform(pipe_in) is called. Reproduce the import and inspect the installed umap module against the expected API; done means the example runs without the AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.