Predicts the AMR phenotype in the test data set based on the best fit ML model.

predictML(fit, test_data)

Arguments

fit

Best model fit, such as the output of fitBestModel()

test_data

The part of the pangenome data designated for ML model testing. This can be the output of rsample::testing(splitMLInputTibble(ml_input_tibble)).

Value

Test data (tibble) with an added column for predicted phenotype labels