scikit-learn/scikit-learn — pull request #4001 by DanielSidhion (2014-12-24 22:23:55+00:00)
Title: Added sample weight support to confusion matrix.

Added a sample_weight parameter inside confusion_matrix which
will be used to build the confusion matrix. If not present, it
will default to np.ones() of size equal to the number of samples.
Tests were created in test_classification.py instead of
test_common.py.