def mcc ( y_true , y_pred , round = True ) : y_true , y_pred = _mask_value_nan ( y_true , y_pred ) if round : y_true = np . round ( y_true ) y_pred = np . round ( y_pred ) return skm . matthews_corrcoef ( y_true , y_pred )
python code to check spearman correlation coefficient
Matthews correlation coefficient
def mcc(y_true, y_pred, round=True):
    """Matthews correlation coefficient
    """
    y_true, y_pred = _mask_value_nan(y_true, y_pred)
    if round:
        y_true = np.round(y_true)
        y_pred = np.round(y_pred)
    return skm.matthews_corrcoef(y_true, y_pred)