getMlrTask | R Documentation |
Prepares the Census data set for mlr.
Performs imputation via: factor = imputeMode()
,
integer = imputeMedian()
,
numeric = imputeMean()
getMlrTask(dataset, task.type = "classif", data.seed = 1)
dataset |
census data set |
task.type |
character, either "classif" or "regr". |
data.seed |
seed |
an mlr task with the respective data set. Generated with
makeClassifTask
or
makeRegrTask
for
classification and regression repectively.
getDataCensus
## Example downloads OpenML data, might take some time: x <- getDataCensus( task.type="classif", nobs = 1e3, nfactors = "high", nnumericals = "high", cardinality = "high", data.seed=1, cachedir= "oml.cache", target = "age") taskdata <- getMlrTask( dataset = x, task.type = "classif", data.seed = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.