Skip to contents

Convenience function to create a TaskSubspace object. This is a wrapper around TaskSubspace$new().

Usage

as_task_subspace(...)

Arguments

...

Arguments passed to TaskSubspace$new(). See TaskSubspace for details on available parameters.

Value

A TaskSubspace object

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
)
} # }