cleverless/scikit-learn — pull request #1 by cleverless (2013-05-09 00:10:24+00:00)
Title: Issue #1937 - Matthews Correlation Coefficient

Fixed runtime warning from Matthews correlation coefficient.

Following script previously produced warning, but does not now.
from sklearn.metrics import matthews_corrcoef
y_true = [-1, -1, -1, -1]
y_pred = [+1, -1, +1, +1]
print matthews_corrcoef(y_true, y_pred)