Description Usage Arguments Value
Preps binary 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 8 |
df_train |
Training data.frame. |
df_test |
Testing data.frame. |
outcome_target |
Value/level of outcome to be considered "success", and there must be a cut such that dframe[[outcomename]]==outcometarget at least twice and dframe[[outcomename]]!=outcometarget at least twice. |
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.