Description Usage Arguments Value Examples
View source: R/predictDataprep.R
this function can be used for autoDataprep objects to generate the same for validation
1 | predictDataprep(x, data)
|
x |
[autoDataprep object | Required] autoDataprep object for which prediction is desired |
data |
[data.frame | Required] prediction data set to prepare the MAR columns |
master data set same as train data set
1 2 3 4 5 6 7 8 9 10 | ## Sample train data set
train <- heart[1:200, ]
test <- heart[201:350, ]
traindata <- autoDataprep(train, target = "target_var", missimpute = "default",
dummyvar = TRUE, aucv = 0.02, corr = 0.98, outlier_flag = TRUE,
interaction_var = TRUE, frequent_var = TRUE)
train <- traindata$master
## Predict same features for test set
test <- predictDataprep(traindata, test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.