Learn R Programming

mlr (version 2.10)

getTaskCosts: Extract costs in task.

Description

Retuns “NULL” if the task is not of type “costsens”.

Usage

getTaskCosts(task, subset)

Arguments

task
[CostSensTask] The task.
subset
[integer] Selected cases. Default is all cases.

Value

[matrix | NULL].

See Also

Other task: getTaskClassLevels, getTaskData, getTaskDescription, getTaskFeatureNames, getTaskFormula, getTaskId, getTaskNFeats, getTaskSize, getTaskTargetNames, getTaskTargets, getTaskType, subsetTask