Output reformed to confusion matrix