mvpa2.misc.errorfx.corr_error¶
-
mvpa2.misc.errorfx.
corr_error
(predicted, target)¶ Computes the correlation between the target and the predicted values. Resultant value is the 1 - correlation coefficient, so minimization leads to the best value (at 0).
In case of NaN correlation (no variance in predictors or targets) result output error is 1.0.