powered by
Evaluates a trained caret model on test data, returning Accuracy, F1 score, and ROC-AUC. If only one class is present in the test set, ROC-AUC is returned as NA.
biomor_benchmark(model, test_data, outcome_col)
A named list of metrics
A trained caret model
Dataframe containing predictors and outcome
Name of outcome column