Description Usage Arguments Details Value
View source: R/feature_generation.R
Generates permutation interaction effects between sets of numeric variables
1 2 | pipe_feature_interactions(train, response, columns = 10L,
max_interactions = 2)
|
train |
The train dataset, as a data.frame or data.table. Data.tables may be changed by reference. |
response |
The column containing the response variable. |
columns |
Columns to use for interaction effects. Can be a character vector referencing numeric columns, or an integer larger than 2 denoting
the minimum number of unique values in any column except |
max_interactions |
The maximum number of columns that will be considered for interaction effects per variable. E.g. for the value 3, this function will generate ALL 2-way interactions between variables and ALL 3-way interactions between variables. Caution is advised to not set this value too high. Defaults to 2. |
Thanks Eduardo.
A list containing the transformed train dataset and a trained pipe.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.