mlr.tasks: Dictionary of defined Tasks

Description Usage Format Examples

Description

Tasks is a Dictionary() used to manage tasks.

Usage

1

Format

R6Class() object

Examples

 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")

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