scikit-learn/scikit-learn — pull request #900 by kernc (2012-06-10 14:08:55+00:00)
Title: KNeighborsClassifier predict_proba() method

as established in the comments, I'm not sure class labels are required to be consecutive and starting with 0 (i.e. np.arange(n_classes) format). so I made it a little more robust. hope it works? :-)