R/convertMLBenchObjToTask.R
We auto-set the target column, drop any column which is called “Id” and convert logicals to factors.
convertMLBenchObjToTask(x, n = 100L, ...)
| x | ( |
|---|---|
| n | ( |
| ... | (any) |
print(convertMLBenchObjToTask("Ionosphere"))#> Supervised task: Ionosphere #> Type: classif #> Target: Class #> Observations: 351 #> Features: #> numerics factors ordered functionals #> 32 2 0 0 #> Missings: FALSE #> Has weights: FALSE #> Has blocking: FALSE #> Has coordinates: FALSE #> Classes: 2 #> bad good #> 126 225 #> Positive class: badprint(convertMLBenchObjToTask("mlbench.spirals", n = 100, sd = 0.1))#> Supervised task: mlbench.spirals #> Type: classif #> Target: classes #> Observations: 100 #> Features: #> numerics factors ordered functionals #> 2 0 0 0 #> Missings: FALSE #> Has weights: FALSE #> Has blocking: FALSE #> Has coordinates: FALSE #> Classes: 2 #> 1 2 #> 50 50 #> Positive class: 1