CannyLab / tsne-cuda

GPU Accelerated t-SNE for CUDA with Python bindings
BSD 3-Clause "New" or "Revised" License
1.78k stars 126 forks source link

Any plans to support TSNE with PCA init? #104

Closed liming-ai closed 3 years ago

liming-ai commented 3 years ago

Hi @DavidMChan,

Are there any plans to support TSNE with PCA initiation?

DavidMChan commented 3 years ago

There are no plans to support this natively right now. Instead, it's best to use any PCA library to compute the PCA transform of the vectors, then pass the resulting transformed vectors to TSNE-CUDA.

liming-ai commented 3 years ago

There are no plans to support this natively right now. Instead, it's best to use any PCA library to compute the PCA transform of the vectors, then pass the resulting transformed vectors to TSNE-CUDA.

Got it , thanks a lot!

liming-ai commented 3 years ago

Hi @DavidMChan , could you please provide some advice about the PCA library with GPU accelerate?

DavidMChan commented 3 years ago

This is provided by many libraries - pytorch: https://pytorch.org/docs/stable/generated/torch.pca_lowrank.html tensorflow: https://www.tensorflow.org/tfx/transform/api_docs/python/tft/pca skcuda: https://scikit-cuda.readthedocs.io/en/latest/generated/skcuda.linalg.PCA.html

It is also a relatively fast CPU operation with support for multithreading in scikit learn.

liming-ai commented 3 years ago

This is provided by many libraries - pytorch: https://pytorch.org/docs/stable/generated/torch.pca_lowrank.html tensorflow: https://www.tensorflow.org/tfx/transform/api_docs/python/tft/pca skcuda: https://scikit-cuda.readthedocs.io/en/latest/generated/skcuda.linalg.PCA.html

It is also a relatively fast CPU operation with support for multithreading in scikit learn.

Thanks again!