Frequency encoding categoricals replaces levels with:
Select an answer to reveal the explanation.
Short Explanation and Infographic
Frequency encoding = replace category with its count/rate (mind leakage/stability).
Full explanation below image
Full Explanation
Simple encoding with operational caveats.