scikit-learn/scikit-learn — pull request #970 by cricketsong (2012-07-19 19:43:38+00:00)
Title: ENH: use Bayesian priors in Nearest Neighbors classifier (Issue 399)

The k-Nearest-Neighbors and Radius Neighbors classifiers now make explicit use of the Bayesian prior probabilities of the classes (`self.class_prior_`). By default, each of these prior probabilities (for a given class) is set to the proportion of sample points which are in the given class; but they can also be set to other values by the class user.

(This is my first submission so I'd be grateful for any and all advices. Thank you!)