Description Usage Arguments Value
Output a data.table that contains list of columns mean target by column value
1 2 3 4 5 6 7 | .calculate_columns_means(
mean_target_colnames,
target_colname,
data,
min_samples_leaf = 0,
smoothing = 1
)
|
mean_target_colnames |
list of column names that needs mean target encoding |
target_colname |
target column name, should be numeric |
data |
dataset used to calculate mean target, usually is the training dataset |
min_samples_leaf |
minimum quantity per column value we consider needs to be calculate mean. |
smoothing |
used to adjust column value mean target from grand target value, default value 1 is to ignore grand target value |
a data.table contains mean target per column value for list of columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.