# 使用GPU加速的TSNE ## Conda install 在Terminal輸入 ``` conda install tsnecuda -c conda-forge ``` **註:使用conda安裝會讓numpy等libraries的版本改變,可能會讓原本的code出錯** ~~也可能不會~~ ## Pip install ~~搞不定,自己研究~~ ## 使用方式 ```python= from tsnecuda import TSNE ``` 其他語法都跟sklearn的差不多 ## 範例 ```python= tsne_latent = TSNE(n_components=2, perplexity=30, n_iter=5000).fit_transform(mix_latent) ``` ## 參考 - https://yanwei-liu.medium.com/tsne-cuda-1200x-faster-than-the-sklearn-version-6081c5b0051d - https://github.com/CannyLab/tsne-cuda?source=post_page
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.