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.


mlr documentation built on June 22, 2024, 10:51 a.m.