scikit-learn/scikit-learn — pull request #1201 by amueller (2012-10-03 13:19:04+00:00)
Title: MRG arbitraty labels for Neighbors classifiers. Fixes problem from ml.

Uses the ``self.classes, y = unique(y)`` idiom.
Makes the code shorter and more robust.