How does the implementation of KNN algorithm in scikit learn calculate the probability estimates for the predict_proba(X) method?
predict_proba(X)