Description Usage Arguments Value
Preps numeric targets using vtreat using cross frames and and fixes names to my preferences. Assumes there is a variable named "target" in the input data.frame
1 2 3 4 5 6 7 | prep_numeric(
df_train,
df_test,
ncross = 5,
use_parallel = F,
var_types_return = c("clean", "isBAD", "catN")
)
|
df_train |
Training data.frame. |
df_test |
Testing data.frame. |
ncross |
Number of cross validation frames in treatment design. |
use_parallel |
Logical, if TRUE use parallel methods. |
var_types_return |
Specifies what types of variables to produce (character array of level codes, NULL means no restriction). |
List with cross validation fold indices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.