19. Python and applied MLScam classifier playbook
Scam classifier playbook
A scam classifier flags money transfers that are likely to be fraud, such as a victim paying a criminal's mule account. The hard parts aren't the model. Scams are rare (about 1.5% here), so accuracy is useless and precision-recall metrics take over. Some columns are only known after the fact, like a chargeback, and leak the answer. Several scams share one mule account, so a random split lets the model recognise accounts it has already seen. And the decision threshold has to come from what each kind of mistake costs, chosen on validation data. This playbook puts the twelve steps in order and links each one to a runnable exercise.
In this lesson: The twelve steps on one page with links into the guided pipeline, a threshold slider at 1.5% positives, then the timed mock.