preprocessTrainData | R Documentation |
Preprocess covariates. DataFrames will be preprocessed based on their column types. Matrices will be passed through assuming all columns are numeric.
preprocessTrainData(input_data)
input_data |
Covariates, provided as either a dataframe or a matrix |
List with preprocessed (unmodified) data and details on the number of each type of variable, unique categories associated with categorical variables, and the vector of feature types needed for calls to BART and BCF.
cov_mat <- matrix(1:12, ncol = 3)
preprocess_list <- preprocessTrainData(cov_mat)
X <- preprocess_list$X
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.