get_best.Rd
From a folder containing model object created with scripts used in the BDF-SSL framework, select the best model candidate based on a evaluation metric for a given variable.
get_best(
model_eval,
prefix = "cubist_",
variable_ = "CORG",
metric = "test.rmse",
maximise = F
)
model evaluation object created with evaluate_model_batch()
Model names prefix, usually defines model type
evaluation statistic which is used to select best model
Should the model with the highest metric be selected? E.g., for R2 set to True. Default is False.
Variable for which the best model is to be searched
Not yet generalised