Task | R Documentation |
The task encapsulates the data and specifies - through its subclasses - the type of the task. It also contains a description object detailing further aspects of the data.
Useful operators are:
getTaskFormula,
getTaskFeatureNames,
getTaskData,
getTaskTargets, and
subsetTask.
Object members:
environment
)Environment where data for the task are stored. Use getTaskData in order to access it.
See argument. NULL
if not present.
See argument. NULL
if not present.
Encapsulates further information about the task.
Functional data can be added to a task via matrix columns. For more information refer to makeFunctionalData.
id |
( |
data |
(data.frame) |
target |
( |
costs |
(data.frame) |
weights |
(numeric) |
blocking |
(factor) |
positive |
( |
fixup.data |
( |
check.data |
( |
coordinates |
(data.frame) |
Task.
ClassifTask ClusterTask CostSensTask MultilabelTask RegrTask SurvTask
if (requireNamespace("mlbench")) {
library(mlbench)
data(BostonHousing)
data(Ionosphere)
makeClassifTask(data = iris, target = "Species")
makeRegrTask(data = BostonHousing, target = "medv")
# an example of a classification task with more than those standard arguments:
blocking = factor(c(rep(1, 51), rep(2, 300)))
makeClassifTask(id = "myIonosphere", data = Ionosphere, target = "Class",
positive = "good", blocking = blocking)
makeClusterTask(data = iris[, -5L])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.