我正在尝试在 Jupyter 中使用 UMAP(在 Anaconda 的环境中),但有些东西无法正常工作。下面是我使用的代码。
# 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
错误信息如下。