DoOneHotEncoding | R Documentation |
This function will take specified column names and append them as one hot encoded variables
DoOneHotEncoding(
MODEL_DATA,
COLS_TO_ENCODE,
DROP_ORIGINAL_COLS = FALSE,
DROP_UNUSED_LEVELS = FALSE,
DEBUG = TRUE
)
MODEL_DATA |
The processed dataset that will be used in the predictive model |
COLS_TO_ENCODE |
The column names containing character values that need to be encoded |
DROP_ORIGINAL_COLS |
Remove the original character variable |
DROP_UNUSED_LEVELS |
Drop any levels that are missing (should be FALSE) |
DEBUG |
If TRUE, the function will run in debug mode |
returns the originak data table with all the new features appended to the dataset
Abraham Mathew
Other Modeling Functions:
RunAllModels()
,
mae()
,
rmse()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.