Expand description
TargetEncoder — mean-target encoding with a smoothing prior.
For each categorical column j, replaces every value v with
ĉ(v) = (nⱼ,ᵥ · μⱼ,ᵥ + m · μ_global) / (nⱼ,ᵥ + m)μⱼ,ᵥ = mean of y when xⱼ = v, and m is a Bayesian
smoothing hyperparameter (smooth in the reference ≥ 1.3).
Structs§
- Target
Encoder - TargetEncoder.