changeData: Change Task Data

View source: R/Task_operators.R

changeDataR Documentation

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.


berndbischl/mlr documentation built on Aug. 15, 2024, 4:20 p.m.