UMAP not working on Jupyter (thru Anaconda)

723 Views Asked by At

I'm trying to use UMAP in Jupyter (on Anaconda's environment) but something is not working properly. Below is the code I used.

# INSTALL UMAP
conda install -c conda-forge umap-learn    # this was what was mentioned on umap's website
import umap.umap_ as umap
reducer = umap.UMAP()

# DROP NON-NUMERIC DATA
a_shortData = shortData.drop(columns='Severity')

# CONVERT EACH FEATURE INTO Z-SCORES
scaled_data = StandardScaler().fit_transform(a_shortData)

# COMPUTES MEAN & STD OF DATA AND USE THESE TO AUTOSCALE THE DATA
embedding = reducer.fit_transform(scaled_data)
embedding.shape

And the error message is as below.

enter image description here enter image description here

0

There are 0 best solutions below