mlr (version 2.15.0)

convertMLBenchObjToTask: Convert a machine learning benchmark / demo object from package mlbench to a task.

Description

We auto-set the target column, drop any column which is called “Id” and convert logicals to factors.

Usage

convertMLBenchObjToTask(x, n = 100L, ...)

Arguments

x

(character(1)) Name of an mlbench function or dataset.

n

(integer(1)) Number of observations for data simul functions. Note that for a few mlbench function this setting is not exactly respected by mlbench. Default is 100.

...

(any) Passed on to data simul functions.

Examples

Run this code
# NOT RUN {
print(convertMLBenchObjToTask("Ionosphere"))
print(convertMLBenchObjToTask("mlbench.spirals", n = 100, sd = 0.1))
# }

Run the code above in your browser using DataCamp Workspace