Description Usage Arguments Examples
reduceDimCat_fit
1 | reduceDimCat_fit(data, column_name, min_percentage, max_numOflevel)
|
dt |
data.table object |
1 2 3 4 5 6 7 8 9 10 | library(data.table)
library(rAutoFE)
data(churn)
data <- as.data.table(churn)
data <- convert2fac(dt=data, columns=c("Churn.","State","Area.Code","Int.l.Plan","VMail.Plan"))
splits <- splitFrame(dt=data, ratio = c(0.5, 0.2), seed=1234)
train <- splits[[1]]
valid <- splits[[2]]
test <- splits[[3]]
fit <- reduceDimCat_fit(data=train, column_name=c("State", "Area.Code"), min_percentage=0.01, max_numOflevel=30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.