Preprocessing for cross validation
Usage
prepForCV(
data = NULL,
formula = NULL,
imputation = FALSE,
normalization = FALSE,
nominalImputationType = "mode",
numericImputationType = "mean",
normalizationType = "range",
seed = "4814"
)
Arguments
- data
Training dataset to apply local preprocessing recipe.
- formula
formula for modeling
- imputation
If "imputation = TRUE", the model will be trained using cross-validation with imputation.
- normalization
If "normalization = TRUE", the model will be trained using cross-validation with normalization
- nominalImputationType
Imputation method for nominal variable (Option: mode(default), bag, knn)
- numericImputationType
Imputation method for numeric variable (Option: mean(default), bag, knn, linear, lower, median, roll)
- normalizationType
Normalization method (Option: range(default), center, normalization, scale)
- seed
seed