This class is the base class for all autos.
Value
Object of class R6::R6Class and Auto.
Public fields
id(
character(1)).properties(
character()).task_types(
character()).packages(
character()).devices(
character()).n_cpu(
integer(1))
Number of CPUs a single training of the learner uses.n_gpu(
integer(1))
Number of GPUs a single training of the learner uses.
Methods
Auto$new()
Creates a new instance of this R6 class.
Arguments
id(
character(1)).properties(
character()).task_types(
character()).packages(
character()).devices(
character()).n_cpu(
integer(1)).n_gpu(
integer(1)).
Auto$check()
Check if the auto is compatible with the task.
Arguments
task(mlr3::Task).
memory_limit(
integer(1)).large_data_set(
logical(1)).devices(
character())
Devices to use. Allowed values are"cpu"and"cuda". Default is "cpu".
Auto$graph()
Create the graph for the auto.
Arguments
task(mlr3::Task).
measuren_threads(
integer(1)).timeout(
integer(1)).devices(
character())
Devices to use. Allowed values are"cpu"and"cuda". Default is "cpu".
Auto$early_stopping_rounds()
Estimate the number of early stopping rounds (the patience) for a learner.
budget is the maximum number of training rounds (boosting iterations or epochs) the learner may use.
The patience is capped well below the budget, otherwise early stopping and validation-based internal tuning
can never trigger and the learner always trains for the full budget.
Arguments
task(mlr3::Task).
budget(
integer(1))
Maximum number of training rounds (boosting iterations or epochs) the learner may use.
Auto$estimate_memory()
Estimate the memory for the auto.
The estimate is the host memory in MB, so learners that allocate on the gpu return -Inf.
Arguments
task(mlr3::Task).
devices(
character())
Devices to use. Allowed values are"cpu"and"cuda". Default is "cpu".
Auto$finalize_model()
Prepare the graph learner for the final model fit. Called after tuning to undo tuning-only setup (e.g., timeout callbacks).
Auto$design_set()
Get the initial hyperparameter set for the learner.
Arguments
task(mlr3::Task).
measuresize(
integer(1)).
