Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


mlr3fselect (version 0.12.0)

fs: Syntactic Sugar for FSelect Construction

Description

Functions to retrieve objects, set parameters and assign to fields in one go. Relies on mlr3misc::dictionary_sugar_get() to extract objects from the respective mlr3misc::Dictionary:

  • fs() for a FSelector from mlr_fselectors.

  • fss() for a list of FSelectors from mlr_fselectors.

  • trm() for a Terminator from mlr_terminators.

  • trms() for a list of Terminators from mlr_terminators.

Usage

fs(.key, ...)

fss(.keys, ...)

Value

R6::R6Class object of the respective type, or a list of R6::R6Class objects for the plural versions.

Arguments

.key

(character(1))
Key passed to the respective dictionary to retrieve the object.

...

(named list())
Named arguments passed to the constructor, to be set as parameters in the paradox::ParamSet, or to be set as public field. See mlr3misc::dictionary_sugar_get() for more details.

.keys

(character())
Keys passed to the respective dictionary to retrieve multiple objects.

Examples

Run this code
# random search with batch size of 5
fs("random_search", batch_size = 5)

# run time terminator with 20 seconds
trm("run_time", secs = 20)

Run the code above in your browser using DataLab