learnerArgsToControl: Convert arguments to control structure.

Description Usage Arguments Value

Description

Find all elements in ... which are not missing and call control on them.

Usage

1
2
learnerArgsToControl(control, ..., .defaults = list(),
  .restrict = FALSE)

Arguments

control

function
Function that creates control structure.

...

any
Arguments for control structure function.

.defaults

list
Initial default values that the control function is called on. One can use this if control should be called on different defaults than in its signature. The values in ... will overwrite these. Default is empty list.

.restrict

(logical(1))
Restrict the elements from ..., which are passed to control, only to the arg-names that occur in the signature of control? Default is FALSE.

Value

Control structure for learner.


mlr-org/mlrng documentation built on May 4, 2019, 4:22 p.m.