mlr_generators

0th

Percentile

Dictionary of Task Generators

A simple Dictionary storing generator functions returning a Task.

Methods

  • get(key, ...) (character(1), ...) -> any Retrieves object with key key from the dictionary.

  • mget(keys, ...) (character(), ...) -> named list() Retrieves objects with keys keys from the dictionary, returns them in a list named with keys.

  • has(keys) character() -> logical() Returns a logical vector with TRUE at its i-th position, if the i-th key exists.

  • keys(pattern) character(1) -> character() Returns all keys which comply to the regular expression pattern.

  • add(key, value) (character(1), any) -> self Adds object value to the dictionary with key key, potentially overwriting a previously stored value.

  • remove(key) character() -> self Removes object with key key from the dictionary.

S3 methods

See Also

Other Dictionary: Dictionary, mlr_learners, mlr_measures, mlr_resamplings, mlr_tasks

Other Task: TaskClassif, TaskRegr, TaskSupervised, Task, mlr_tasks

Aliases
  • mlr_generators
Examples
# NOT RUN {
g = mlr_generators$get("smiley")
task = g$generate(10)
print(task)
task$data()
# }
Documentation reproduced from package mlr3, version 0.1.0-9000, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.