The skl_groups_accel
package contains Cython extensions for skl-groups.
Its purpose is to make skl-groups proper easier to install by not requiring
a compiler or having FLANN installed / etc.
It currently contains only a (much) faster implementation of the core portion
of skl_groups.divergences.knn.KNNDivergenceEstimator
.
The easy way is:
$ conda install -c https://conda.binstar.org/dougal skl-groups
if you use conda, which includes both skl-groups and skl-groups-accel.
Otherwise, first install skl-groups and
cyflann.
You'll also need a compiler with OpenMP support,
so gcc (not llvm-gcc) instead of clang
(for now).
On OSX, do brew install gcc
and then set CC=gcc-4.9
;
Linux users probably have gcc installed,
but make sure to set CC
if you default to clang.
Then you can:
$ pip install skl-groups-accel
or, from a source checkout, python setup_accel.py install
or whatever.
If you're installing from a source checkout you need a recent version of Cython.