scikit-learn/scikit-learn — pull request #1373 by mblondel (2012-11-15 15:00:05+00:00)
Title: MRG: Random classifier

This PR is gonna win the prize of the most silly classifier ever added to scikit-learn.

I think it's a good sanity check when doing classification to compare with random classification. This estimator supports three strategies for generating random predictions: stratified, most_frequent and uniform. The first two strategies can give surprisingly good accuracy if you're doing binary classification or if your dataset is unbalanced.

If people think it's useful, I'm gonna add it to the documentation.