Saifullah.
← Back to work

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

FastAPIscikit-learnPandasPostgreSQLDockerPytest

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

Synthetic dataset → feature pipeline → model selection → calibration + threshold policy → signed artifact manifest → FastAPI inference

Engineering highlights

Outcomes

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.