Design an Employee Attrition Risk Platform
Ingest HR snapshots, train an imbalance-aware attrition model, and deliver auditable explanations to authorized reviewers.
Problem statement
Design a machine-learning platform that ingests periodic tab-separated HR snapshots and predicts employee attrition with an explanation. The design must cover feature selection, model training, class imbalance, evaluation, deployment, and explainability.
For this exercise, assume the target is voluntary attrition, only authorized HR reviewers may inspect a result, a weekly snapshot contains up to five million employee rows, verified departure labels arrive up to 90 days later, and reviewers need a new scored cohort within six hours of an accepted snapshot.
Also assume a score is decision support only and must not trigger an employment action automatically; raw sensitive fields and derived scores require least-privilege access, complete audit history, deletion propagation, and governed subgroup evaluation.
Designing retention programs or choosing a specific model family is outside scope.
What to build
- The platform validates and versions each HR snapshot before it can influence features, training, or scoring.
- The platform builds leakage-safe labeled cohorts, handles class imbalance, and evaluates both ranking quality and subgroup behavior.
- Authorized reviewers can inspect a current risk score with its model version, input snapshot, and bounded human-readable explanation.
- The platform enforces purpose-bound access, audits every score read, and propagates deletion or correction through derived artifacts.
At scale
- For this exercise, assume a weekly tab-separated snapshot contains up to five million employee rows.
- For this exercise, assume verified departure labels may arrive up to 90 days after a snapshot, making point-in-time cohort construction necessary.
- For this exercise, assume an accepted snapshot must produce a scored cohort for authorized reviewers within six hours.
- For this exercise, assume attrition is a minority outcome and evaluation must include imbalance-aware metrics plus governed subgroup behavior rather than accuracy alone.