Create a classification, regression, survival, cluster, cost-sensitive classification or multilabel task.
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:
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.
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]) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.