Returns the F1 score, area under the precision-recall curve (AUPRC), balanced accuracy, normalized (to a 0 to 1 scale instead of -1 to 1) Matthews correlation coefficient (nMCC), and log2(AUPRC/prior) based on the AMR phenotype predictions by an ML model compared against the actual values.
calculateEvalMets(test_data_plus_predictions)Test data (tibble) with an added column for
predicted phenotype labels, such as the output of predictML()
F1 score, AUPRC, balanced accuracy, nMCC, and log2(AUPRC/prior)