<commit_before>Python-TSNE
===========

Python library containing T-SNE algorithms.

Algorithms
----------

### Barnes-Hut-SNE

A python ([cython](http://www.cython.org)) wrapper for [Barnes-Hut-SNE](http://homepage.tudelft.nl/19j49/t-SNE.html) aka fast-tsne.

I basicly took [osdf code](https://github.com/osdf/py_bh_tsne) and made it pip compilant.

The wrapper was successfully tested on OSX (10.6/10.7), Ubuntu (11.04) and Arch Linux.

Requirements
------------

* [numpy](numpy.scipy.org)>=1.7.1
* [scipy](http://www.scipy.org/)>=0.12.0
* [cython](cython.org)>=0.19.1
* [cblas](http://www.netlib.org/blas/) or [openblas](https://github.com/xianyi/OpenBLAS). Tested version is v0.2.5 and v0.2.6 (not necessary for OSX).

Installation
------------

You can install the package from [PyPI](https://pypi.python.org/pypi):

```
pip install tsne
```

Or directly from the Github repository:

```
pip install git+https://github.com/danielfrg/tsne.git
```

Usage
-----

Basic usage:

```
from tsne import bh_sne
X_2d = bh_sne(X)
```

### Examples

* [Iris](http://nbviewer.ipython.org/urls/raw.github.com/danielfrg/py_tsne/master/examples/iris.ipynb)
* [MNIST](http://nbviewer.ipython.org/urls/raw.github.com/danielfrg/py_tsne/master/examples/mnist.ipynb)

More Information
----------------

See *Barnes-Hut-SNE* (2013), <NAME>. It is available on [arxiv](http://arxiv.org/abs/1301.3342).
<commit_msg>New example<commit_after>Python-TSNE
===========

Python library containing T-SNE algorithms.

Algorithms
----------

### Barnes-Hut-SNE

A python ([cython](http://www.cython.org)) wrapper for [Barnes-Hut-SNE](http://homepage.tudelft.nl/19j49/t-SNE.html) aka fast-tsne.

I basicly took [osdf code](https://github.com/osdf/py_bh_tsne) and made it pip compilant.

The wrapper was successfully tested on OSX (10.6/10.7), Ubuntu (11.04) and Arch Linux.

Requirements
------------

* [numpy](numpy.scipy.org)>=1.7.1
* [scipy](http://www.scipy.org/)>=0.12.0
* [cython](cython.org)>=0.19.1
* [cblas](http://www.netlib.org/blas/) or [openblas](https://github.com/xianyi/OpenBLAS). Tested version is v0.2.5 and v0.2.6 (not necessary for OSX).

Installation
------------

You can install the package from [PyPI](https://pypi.python.org/pypi):

```
pip install tsne
```

Or directly from the Github repository:

```
pip install git+https://github.com/danielfrg/tsne.git
```

Usage
-----

Basic usage:

```
from tsne import bh_sne
X_2d = bh_sne(X)
```

### Examples

* [Iris](http://nbviewer.ipython.org/urls/raw.github.com/danielfrg/py_tsne/master/examples/iris.ipynb)
* [MNIST](http://nbviewer.ipython.org/urls/raw.github.com/danielfrg/py_tsne/master/examples/mnist.ipynb)
* [word2vec on presidential speeches](https://github.com/prateekpg2455/U.S-Presidential-Speeches) via [@prateekpg2455](https://github.com/prateekpg2455)

More Information
----------------

See *Barnes-Hut-SNE* (2013), <NAME>. It is available on [arxiv](http://arxiv.org/abs/1301.3342).

{'fraction_non_alphanumeric': 0.21106209704784526, 'fraction_numerical': 0.03427214116050221, 'mean_word_length': 3.64251968503937, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 10, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4274615', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1164, 'n_words': 205}