04 / ML Decision Support
Shipped
Lead Scoring ML API
A scikit-learn/FastAPI methodology demo exploring calibrated lead scores and business-cost thresholds on a clearly labeled synthetic dataset.
Role · ML methodology and API development
Case study
What this project demonstrates
Built a decision-support methodology demo using 5,000 synthetic leads with separate training, validation, and test sets. Calibration diagnostics and cost-based thresholds make the relationship between model scores and decisions explicit. A FastAPI service exposes the model with typed data contracts, artifact integrity checks, and reproducible evaluation. Held-out ROC-AUC was 0.729 on 1,000 synthetic test rows; this is not a claim of real CRM performance or causal business impact.
Architecture
Engineering highlights
- Deterministic 5,000-row synthetic B2B dataset with explicit non-production benchmark labeling.
- Train/validation/test separation, calibration analysis, Brier/log-loss evaluation, and business-cost threshold policy.
- Single, batch, and CSV scoring with typed feature contracts and local logistic contribution explanations.
- Model manifest and SHA-256 verification before deserialization, CI coverage, CodeQL, and release/container workflows.
Outcomes
- ROC-AUC 0.729 on 1,000 held-out test rows from a 5,000-row synthetic dataset.
Boundaries / limitations
Methodology demo using synthetic leads. The held-out ROC-AUC of 0.729 does not establish real CRM performance or causal business impact.