View source: R/target_encoding_methods.R
encoded_predictor_name | R Documentation |
Name of Target-Encoded Predictor
encoded_predictor_name(
predictor = NULL,
encoding_method = "mean",
smoothing = 0,
white_noise = 0,
seed = 1
)
predictor |
(required; string) Name of the categorical predictor to encode. Default: NULL |
encoding_method |
(required, string) Name of the encoding method. One of: "mean", "rank", or "loo". Default: "mean" |
smoothing |
(optional; integer) Groups smaller than this number have their means pulled towards the mean of the response across all cases. Ignored by |
white_noise |
(optional; numeric vector) Argument of the methods "mean", "rank", and "loo". Maximum white noise to add, expressed as a fraction of the range of the response variable. Range from 0 to 1. Default: |
seed |
(optional; integer vector) Random seed to facilitate reproducibility when |
string: predictor name
Other target_encoding_tools:
add_white_noise()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.