mvpa2.misc.errorfx.mismatch_error

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

Computes number of mismatches between some target and some predicted values. Both ‘predicted’ and ‘target’ can be either scalars or sequences, but have to be of the same length.