Description Usage Arguments Examples
autoFE
1 |
train |
data.table object |
valid |
data.table object |
test |
data.table object |
savePath |
save path |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | library(data.table)
library(rAutoFE)
library(rAutoFS)
library(h2o)
savePath <- "c:/tmp"
dir.create(savePath)
data(churn)
churn <- as.data.table(churn)
churn[, Area.Code:=as.factor(Area.Code)]
splits <- splitFrame(dt=churn, ratio = c(0.5, 0.2), seed=1234)
train <- splits[[1]]
valid <- splits[[2]]
test <- splits[[3]]
y = "Churn."
x = colnames(train)[colnames(train)!=y]
h2o.init()
dataset <- autoFE(train=train, valid=valid, test=test, x=x, y=y, savePath=savePath, verbose=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.