mergeSmallFactorLevels {mlr} | R Documentation |
Merges small levels of factors into new level.
Description
Merges factor levels that occur only infrequently into combined levels with a higher frequency.
Usage
mergeSmallFactorLevels(
task,
cols = NULL,
min.perc = 0.01,
new.level = ".merged"
)
Arguments
task |
(Task) |
cols |
(character) Which columns to convert. Default is all factor and character columns. |
min.perc |
( |
new.level |
( |
Value
Task
, where merged levels are combined into a new level of name new.level
.
See Also
Other eda_and_preprocess:
capLargeValues()
,
createDummyFeatures()
,
dropFeatures()
,
normalizeFeatures()
,
removeConstantFeatures()
,
summarizeColumns()
,
summarizeLevels()
[Package mlr version 2.19.2 Index]