次元圧縮のUMAPでエラー module ‘umap’ has no attribute ‘UMAP’

PythonでUMAPを使おうとしたときに表題のエラー。

module 'umap' has no attribute 'UMAP'

pip install umapだとダメで、umap-learnをインストールするのが正解

pip uninstall umap
pip install umap-learn

参考

UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction — umap 0.5 documentation
umap-learn
Uniform Manifold Approximation and Projection

コメント

タイトルとURLをコピーしました