powered by
Join some class existing levels to new, larger class levels for classification problems.
joinClassLevels(task, new.levels)
(Task) The task.
(list of character) Element names specify the new class levels to create, while the corresponding element character vector specifies the existing class levels which will be joined to the new one.
list
character
Task.
# NOT RUN { joinClassLevels(iris.task, new.levels = list(foo = c("setosa", "virginica"))) # }
Run the code above in your browser using DataLab