pavlin-policar / openTSNE

Extensible, parallel implementations of t-SNE
https://opentsne.rtfd.io
BSD 3-Clause "New" or "Revised" License
1.45k stars 158 forks source link

Post installation issue #141

Closed arifmasrur closed 3 years ago

arifmasrur commented 3 years ago

Hi, using conda install -c conda-forge opentsne worked just fine -i.e. from openTSNE import TSNE works. I can generate TSNE embeddings. However, for visualizing I need utils, and from examples import utils giving ModuleNotFoundError: No module named 'examples' error.

Why this is happening? Have I missed anything during installation? Thanks.

pavlin-policar commented 3 years ago

No, you're not missing anything. You can easily visualize embeddings using matplotlib. After all, TSNEEmbedding objects are just 2D numpy arrays. Those example utils are there just for the example notebooks. I don't think they're even packaged in the conda package. If you really want to use the example utils, I suggest you clone the repository from GitHub, and python setup.py install. Then it should work I think. But again, those utils are just wrappers around matplotlib, so I suggest using that.