lmcinnes / lmcinnes/umap

No plot generated using umap.plot.points

Open
#451 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
8.3k
Forks
871
Avg merge
1d 13h
Merged PRs (30d)
5

Description

Hi, I would like to know how to obtain the plot in the Python shell as I am not using the Jupyter notebook. I am running the code shown below in Sublime Text and no plot is being generated when the code is being run.

Thank you for your help.

```
import umap
import umap.plot
import numpy as np
from tensorflow.keras.datasets import mnist

(train_img, train_label),(test_img, test_label) = mnist.load_data()

x = train_img[:100]
x = x.reshape(-1, 784)

print(np.shape(x))

embed = umap.UMAP().fit(x)
umap.plot.points(embed, labels = train_label[:100])
```

Contributor guide

Open the contributing guide

Research direction

Start by running the Python example shown in the issue and inspect the umap.plot.points entry point, focusing on behavior outside Jupyter. Done means the example produces the requested plot when run from Sublime Text or the issue is clarified with the required usage documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
data-visualization, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.