Returns the normalized (to a 0 to 1 scale instead of -1 to 1) Matthews correlation coefficient (nMCC) based on the AMR phenotype predictions by an ML model compared against the actual values.

.calculatenMCC(test_data_plus_predictions)

Arguments

test_data_plus_predictions

Test data (tibble) with an added column for predicted phenotype labels, such as the output of predictML()

Value

Normalized (to a 0 to 1 scale instead of -1 to 1) Matthews correlation coefficient (nMCC)