def pearson(y_true, y_pred):
    ret_score = pearsonr(y_true, y_pred)[0]
    return ret_score if not np.isnan(ret_score) else 0.0
Calculate Pearson product-moment correlation coefficient between ``y_true``
dataset/ETHPy150Open EducationalTestingService/skll/skll/metrics.py/pearson