Description Usage Format Examples
Tasks
is a Dictionary()
used to manage tasks.
1 |
R6Class()
object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # List task ids:
mlr.tasks$ids
# Get a briew summary:
mlr.tasks$summary()
# Retrieve a specific task:
mlr.tasks$get("iris")
# Add a new task, based on a subset of iris:
data = iris
data$Species = ifelse(data$Species == "setosa", "1", "0")
task = TaskClassif$new("iris.binary", data = data, target = "Species")
task$nclasses
mlr.tasks$add(task)
mlr.tasks$summary()
mlr.tasks$remove("iris.binary")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.