View source: R/target_encoder.R
A wrapper for .target_encode that makes target encoding a large number of columns easy
1 2 | target_encoder(train_df, test_df = NULL, y, x, w = NULL, verbose = FALSE,
...)
|
train_df |
A data.frame (or coercible object) that contains the training set columns to be encoded |
test_df |
A data.frame (or coercible object) that contains the test set columns to be encoded |
y |
A string containing the name of the target column |
x |
A string containing the names of the columns to be processed |
w |
A string containing the name of the weight column. Defaults to NULL. |
verbose |
A logical indicating whether to print run time progress messages or not. |
... |
Further arguments to be passed to .target_encode |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.