mvpa2.misc.errorfx.correlation

mvpa2.misc.errorfx.correlation(predicted, target)

Computes the correlation between the target and the predicted values.

In case of NaN correlation (no variance in predictors or targets) result output error is 0.