Description Usage Arguments Examples
View source: R/weightOfEvidence.R
train for WoE and information value.
1 |
data |
data.table object. |
target.var |
A character representing the name of the binary variable |
pred.var |
character vector column names |
1 2 3 4 5 6 7 8 9 10 | library(rAutoFE)
data(churn)
churn <- as.data.table(churn)
churn[,'target'] <- ifelse(churn[,Churn.] == "False.", 0, 1)
churn$Account.Length[1:500] <- NA
splits <- splitFrame(dt = churn, ratio = c(0.5, 0.3), seed = 1234)
train <- splits[[1]]
valid <- splits[[2]]
test <- splits[[3]]
fit_info <- WoE_fit(data = train, target.var = "target", pred.var = c("Day.Charge", "Account.Length", "State"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.