Convert an OpenML task to mlr.
Converts an OMLTask
to a list of Task
, ResampleInstance
and Measure
.
convertOMLTaskToMlr( obj, measures = NULL, mlr.task.id = "<oml.data.name>", ignore.flagged.attributes = TRUE, drop.levels = TRUE, verbosity = NULL )
obj
: [OMLTask
]
The OML task object that should be converted.
measures
: [Measure
]
Additional measures that should be computed.
mlr.task.id
: [character(1)
]
Id string for Task
object. The strings <oml.data.name>
, <oml.data.id>
, <oml.data.version>
and <oml.task.id>
will be replaced by their respective values contained in the OMLTask
object. Default is <oml.data.name>
.
ignore.flagged.attributes
: [logical(1)
]
Should those features that are listed in the data set description slot ignore.attribute
be removed? Default is TRUE
.
drop.levels
: [logical(1)
]
Should empty factor levels be dropped in the data? Default is TRUE
.
verbosity
: [integer(1)
]
Print verbose output on console? Possible values are:
0
: normal output,
1
: info output,
2
: debug output.
Default is set via setOMLConfig
.
[list] A list with the following objects:
Task
]ResampleInstance
]Measures
to optimize for.# \dontrun{ # library("mlr") # vinnieOML = getOMLTask(task.id = 4845) # vinnieMlr = convertOMLTaskToMlr(vinnieOML) # }
Other task-related functions: deleteOMLObject()
, getOMLTask()
, listOMLTaskTypes()
, listOMLTasks()
, makeOMLTask()
, tagOMLObject()