Create a subspace task
as_task_subspace.RdConvenience function to create a TaskSubspace object. This is a
wrapper around TaskSubspace$new().
Arguments
- ...
Arguments passed to
TaskSubspace$new(). SeeTaskSubspacefor details on available parameters.
See also
TaskSubspace for full documentation and examples.
Examples
if (FALSE) { # \dontrun{
# Explicit specification
task <- as_task_subspace(
data = benchmark_data,
target_measure = "auc",
hps = c("learning_rate", "max_depth")
)
# Formula interface
task <- as_task_subspace(
data = benchmark_data,
formula = auc ~ (learning_rate + max_depth) * optimizer
)
} # }