mvpa2.misc.errorfx.match_accuracy

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

Computes number of matches 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.