Perform preprocessing for the testing data, including converting data to dataframe, and testing if the columns are consistent with the training data and encoding categorical data into numerical representation in the same way as training data.
preprocess_testing(x, categoricalFeatureCols, categoricalFeatureMapping)
A data frame of all training predictors.
A list of index for all categorical data. Used for trees to detect categorical columns.
A list of encoding details for each categorical column, including all unique factor values and their corresponding numeric representation.
A preprocessed training dataaset x