This function adds member(s) to a simple_ensemble()
object, taking the
best member from each workflow provided. It is possible to pass individual
tune_results
objects from a tuned workflow
, or a
workflowsets::workflow_set()
.
add_member(x, member, ...)# S3 method for default
add_member(x, member, ...)
# S3 method for tune_results
add_member(x, member, metric = NULL, id = NULL, ...)
# S3 method for workflow_set
add_member(x, member, metric = NULL, ...)
a simple_ensemble with additional member(s)
a simple_ensemble to which member(s) will be added
a tune_results
, or a workflowsets::workflow_set
not used at the moment.
A character string (or NULL) for which metric to optimize. If NULL, the first metric is used.
the name to be given to this workflow in the wflow_id
column.