validation script for accuracy, precision, recall, and f-measure