Data and feature engineering · MLD-1205

Target encoding

Representing categories using statistics of their target values, usually with regularization.

Original reference page · detailed expansion pending. Original definitions, examples, notes and citations are preserved below. New examples are illustrative, not benchmark results.

Original example

Encode merchant IDs by estimated fraud rate.

Original caveat

Compute encodings out of fold to avoid leakage.

Context and aliases

Level: Intermediate. Stages: Data · Training · Evaluation.

Tags: ML · DL · SLM · LLM.

Aliases: Mean encoding.

Related concepts

Concepts linking here

Original references

Open original record, export or annotate →