A worker function that does the target encoding of a column
1 2 | .target_encode(trn_x, tst_x, trn_y, trn_w = NULL, min_samples_leaf = 1,
smoothing = 1, noise_level = 0)
|
trn_x |
A vector that contains the original x values for the train data |
tst_x |
A vector that contains the x values for the test data |
trn_y |
A vector that contains the train set actuals |
trn_w |
A vector that contains row level weights. Defaults to NULL |
min_samples_leaf |
Whats the smallest amount of weight that's deemed to be credible? |
smoothing |
A parameter that controls the aggressiveness of the smoothing |
noise_level |
How much noise should be injected into the results? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.