Description Usage Arguments Value See Also Examples
View source: R/Task_operators.R
Useful in trainLearner
when you add a learning machine to the package.
1 2 | getTaskData(task, subset = NULL, features, target.extra = FALSE,
recode.target = "no", functionals.as = "dfcols")
|
task |
[ |
subset |
[ |
features |
[ |
target.extra |
[ |
recode.target |
[ |
functionals.as |
[ |
Either a data.frame or a list with data.frame data
and vector target
.
Other task: getTaskClassLevels
,
getTaskCosts
, getTaskDesc
,
getTaskFeatureNames
,
getTaskFormula
, getTaskId
,
getTaskNFeats
, getTaskSize
,
getTaskTargetNames
,
getTaskTargets
, getTaskType
,
subsetTask
1 2 3 4 5 6 7 8 9 | library("mlbench")
data(BreastCancer)
df = BreastCancer
df$Id = NULL
task = makeClassifTask(id = "BreastCancer", data = df, target = "Class", positive = "malignant")
head(getTaskData)
head(getTaskData(task, features = c("Cell.size", "Cell.shape"), recode.target = "-1+1"))
head(getTaskData(task, subset = 1:100, recode.target = "01"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.