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. [Experimental]

get_best(
  model_eval,
  prefix = "cubist_",
  variable_ = "CORG",
  metric = "test.rmse",
  maximise = F
)

Arguments

model_eval

model evaluation object created with evaluate_model_batch()

prefix

Model names prefix, usually defines model type

metric

evaluation statistic which is used to select best model

maximise

Should the model with the highest metric be selected? E.g., for R2 set to True. Default is False.

variable

Variable for which the best model is to be searched

Note

Not yet generalised