Model tuned over a grid of parameter values, as produced by the
tune function.
Usage
TunedModel(model, grid = MachineShop::settings("grid"), fixed = NULL,
control = MachineShop::settings("control"), metrics = NULL,
stat = MachineShop::settings("stat.Tune"),
cutoff = MachineShop::settings("cutoff"))
Arguments
model
model function, function name, or call defining
the model to be tuned.
grid
data frame containing parameter values at
which to evaluate a single model supplied to models, such as that
returned by expand_params; the number of parameter-specific
values to generate automatically if the model has a pre-defined grid; or a
call to Grid.
fixed
list of fixed parameter values to combine with those in
grid.
control
control function, function name, or call
defining the resampling method to be employed.
metrics
metric function, function name, or vector of
these with which to calculate performance. If not specified, default
metrics defined in the performance functions are used. Model
selection is based on the first calculated metric.
stat
function or character string naming a function to compute a
summary statistic on resampled metric values for model tuning.
cutoff
argument passed to the metrics functions.
Value
TunedModel class object that inherits from MLModel.