Description Usage Arguments Value
View source: R/transform_features.R
Applies different transformations to each numeric feature and selects the one with the highest correlation to the response per feature
1 2 3 |
train |
Data frame containing the train data. |
response |
String denoting the name of the column that should be used as the response variable. Mandatory |
transform_columns |
Columns to consider for transformation. |
missing_func |
A function that determines if an observation is missing, e.g. |
transform_functions |
A list of function used to transform features. Should be one-to-one transformations like sqrt or log. |
retransform_columns |
Columns that should be retransformed later on. If this is set to one or more column names, this function will generate a numerical approximation of the inverse of the optimal tranformation function. This pipe will be returned as a separate list entry. |
A list containing the transformed train dataset and a trained pipe. If retransform_columns
was set, the reverting pipe will also be provided.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.