Description Usage Arguments Value See Also Examples
View source: R/Task_operators.R
Get target data of task.
1 | getTaskTargets(task, recode.target = "no")
|
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 2 | task = makeClassifTask(data = iris, target = "Species")
getTaskTargets(task)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.