getTaskCosts: Extract costs in task.

View source: R/Task_operators.R

getTaskCostsR Documentation

Extract costs in task.

Description

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

Usage

getTaskCosts(task, subset = NULL)

Arguments

task

(CostSensTask)
The task.

subset

(integer | logical | NULL)
Selected cases. Either a logical or an index vector. By default NULL if all observations are used.

Value

(matrix | NULL).

See Also

Other task: getTaskClassLevels(), getTaskData(), getTaskDesc(), getTaskFeatureNames(), getTaskFormula(), getTaskId(), getTaskNFeats(), getTaskSize(), getTaskTargetNames(), getTaskTargets(), getTaskType(), subsetTask()


mlr-org/mlr documentation built on Jan. 12, 2023, 5:16 a.m.