processing test data, confusion matrix