
Last chance! 50% off unlimited learning
Sale ends in
See title.
subsetTask(task, subset = NULL, features)
(Task) The task.
(character | integer | logical) Vector of selected inputs. You can either pass a character vector with the feature names, a vector of indices, or a logical vector. In case of an index vector each element denotes the position of the feature name returned by getTaskFeatureNames. Note that the target feature is always included in the resulting task, you should not pass it here. Default is to use all features.
(Task). Task with subsetted data.
Other task: getTaskClassLevels
,
getTaskCosts
, getTaskData
,
getTaskDesc
,
getTaskFeatureNames
,
getTaskFormula
, getTaskId
,
getTaskNFeats
, getTaskSize
,
getTaskTargetNames
,
getTaskTargets
, getTaskType
# NOT RUN {
task = makeClassifTask(data = iris, target = "Species")
subsetTask(task, subset = 1:100)
# }
Run the code above in your browser using DataLab