Learn R Programming

mlr (version 2.13)

changeData: Change Task Data

Description

Mainly for internal use. Changes the data associated with a task, without modifying other task properties.

Usage

changeData(task, data, costs, weights, coordinates)

Arguments

task

(Task) The task.

data

(data.frame) The new data to associate with the task. The names and types of the feature columns must match with the old data.

costs

([data.frame` Optional: cost matrix.

weights

(numeric) Optional: weight vector.