scikit-learn/scikit-learn — pull request #1387 by kuantkid (2012-11-21 05:37:57+00:00)
Title: WIP chi square kernel and histogram intersection kernel

This adds the chi square kernel and histogram intersection kernels (issue #1172) and raise an `TypeError` for Manhattan distances for sparse inputs (issue #1384)

Currently they both supports dense matrix only. Not sure how to make it effectively support dense/sparse input and sparse/sparse inputs.

Some discussion for adapting @jakevdp https://github.com/jakevdp/pyDistances/ for possible solutions for sparse inputs can be found in (issue #1384).