scikit-learn/scikit-learn — pull request #2164 by jakevdp (2013-07-17 14:18:59+00:00)
Title: BUG: use correct algorithm for callable metric

Fixes bug reported in #2151. The neighbors base object was choosing the wrong algorithm given a callable metric.