Machine Learning / Predictive Analytics
Employee Attrition Prediction.
An academic predictive modeling project exploring employee attrition through feature engineering, classification pipelines, and rigorous model evaluation.
01. Overview
Beyond accuracy, toward useful evaluation
An academic predictive modeling project exploring employee attrition through feature engineering, classification pipelines, and rigorous model evaluation.
GCI Global 2025 · Student project
02. The problem
The problem
Can classification models identify attrition cases more usefully than a majority-class baseline on a small, course-modified HR dataset?
03. The approach
The approach
- 01
Explore development-data distributions and class balance, then engineer ratio and interaction features.
- 02
Use year-labelled development and holdout sets with no shared employee IDs; keep imputation, scaling, and encoding inside preprocessing pipelines and validation folds.
- 03
Compare a dummy baseline, Logistic Regression, Random Forest, and XGBoost on five stratified folds, selecting by Average Precision with ROC-AUC and F1 as supporting metrics.
- 04
Tune the classification threshold on out-of-fold development predictions, then evaluate the unchanged model and threshold on the holdout and interpret permutation importance.
04. Technical architecture
Technical architecture
- Course-modified HR data
- Disjoint-ID split
- Preprocessing pipeline
- Cross-validation
- Threshold selection
- Holdout + interpretation
05. Outcomes & reflection
Results and limitations
The selected XGBoost model achieved 0.5791 holdout average precision. At the development-selected 0.30 threshold, it identified 22 of 50 attrition cases while missing 28 and incorrectly flagging 13 non-attrition cases.
Scope & limitations
A teaching case, not verified current IBM workforce data. Scores are not calibrated; prediction horizon, fairness, and intervention costs need further validation. Feature importance is not causal evidence. The supplied year labels do not establish prospective evaluation, and earlier analysis of the dataset means this is not independent external validation.