Get target data of task.
getTaskTargets(task, recode.target = "no")
task | (Task) |
---|---|
recode.target | ( |
A factor
for classification or a numeric
for regression, a data.frame
of logical columns for multilabel.
Other task:
getTaskClassLevels()
,
getTaskCosts()
,
getTaskData()
,
getTaskDesc()
,
getTaskFeatureNames()
,
getTaskFormula()
,
getTaskId()
,
getTaskNFeats()
,
getTaskSize()
,
getTaskTargetNames()
,
getTaskType()
,
subsetTask()
#> [1] setosa setosa setosa setosa setosa setosa #> [7] setosa setosa setosa setosa setosa setosa #> [13] setosa setosa setosa setosa setosa setosa #> [19] setosa setosa setosa setosa setosa setosa #> [25] setosa setosa setosa setosa setosa setosa #> [31] setosa setosa setosa setosa setosa setosa #> [37] setosa setosa setosa setosa setosa setosa #> [43] setosa setosa setosa setosa setosa setosa #> [49] setosa setosa versicolor versicolor versicolor versicolor #> [55] versicolor versicolor versicolor versicolor versicolor versicolor #> [61] versicolor versicolor versicolor versicolor versicolor versicolor #> [67] versicolor versicolor versicolor versicolor versicolor versicolor #> [73] versicolor versicolor versicolor versicolor versicolor versicolor #> [79] versicolor versicolor versicolor versicolor versicolor versicolor #> [85] versicolor versicolor versicolor versicolor versicolor versicolor #> [91] versicolor versicolor versicolor versicolor versicolor versicolor #> [97] versicolor versicolor versicolor versicolor virginica virginica #> [103] virginica virginica virginica virginica virginica virginica #> [109] virginica virginica virginica virginica virginica virginica #> [115] virginica virginica virginica virginica virginica virginica #> [121] virginica virginica virginica virginica virginica virginica #> [127] virginica virginica virginica virginica virginica virginica #> [133] virginica virginica virginica virginica virginica virginica #> [139] virginica virginica virginica virginica virginica virginica #> [145] virginica virginica virginica virginica virginica virginica #> Levels: setosa versicolor virginica