confusion matrix for each category and using cross validation