Fix for PUB-829. Return the correct confusion matrices when validation or nfolds is specified.