conn2res.performance.corrcoef
- conn2res.performance.corrcoef(y_true, y_pred, sample_weight=None, multioutput='uniform_average', nonnegative=None, **kwargs)[source]
Pearson’s correlation coefficient.
- Parameters:
y_true (numpy.ndarray) – Ground truth target values.
y_pred (numpy.ndarray) – Predicted target values.
multioutput (str) – Defines aggregating of multiple output scores.
nonnegative (str) –
Defines whether return the abosulate or squared value:
’squared’ : Squares the values of the correlations
’absolute’ : Takes the absolute value of the correlations
- Returns:
score (float or ndarray of floats.)
A floating point value or an array of floating
point values, one for each individual target.