Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mschubert/bhtsner

R package for Barnes-Hut t-SNE
https://github.com/mschubert/bhtsner

Last synced: about 12 hours ago
JSON representation

R package for Barnes-Hut t-SNE

Awesome Lists containing this project

README

        

bhtsneR
=======

A minimal, CRAN-compliant wrapper for the Barnes-Hut implementation of
[T-distributed Stochastic Neighbor Embedding (t-SNE)](http://homepage.tudelft.nl/19j49/t-SNE.html).

### Installation

You will need the following software:

* [cblas](http://www.netlib.org/blas/) or [openblas](https://github.com/xianyi/OpenBLAS)
* R packages: `Rcpp`, `devtools`

Run this in R to install the current GitHub version:

```splus
devtools::install_github("mschubert/bhtsneR")
```

### Running

Here is an example on how to run it on the iris data set:

```splus
library(bhtsneR)

# perform Barnes-Hut t-SNE
result = bhtsne(iris[1:4])
plot(result, col=iris[[5]])

# perform exact calculations
# this is equivalent to bhtsne(..., theta=0)
result = tsne(iris[1:4])
plot(result, col=iris[[5]])
```

### More information

Barnes-Hut-SNE. (2013). L.J.P. van der Maaten. [arXiv:1301.3342](http://arxiv.org/abs/1301.3342).