Build a self-hosted fraud-scoring system that prevents leakage, training-serving skew and unsafe releases: a Dagster pipeline with data contracts, Feast with point-in-time training sets and a Redis online store, calibrated XGBoost with a cost policy, a model registry with lineage, BentoML serving with shadow scoring, a statistical promotion gate, and drift-driven retraining under delayed labels.
MLOps Engineer. Advanced.
This page follows one purchase from the card network to a decision, and one day from its delivery to a promoted model. It explains why each part exists, what moves along each connection, and what happens when a part fails. The lessons go deeper into each technology; this page should make sense without them.
This lesson does two things. It checks that your workstation can run the lab, and it refreshes five statistical ideas that the later lessons use without stopping to explain them: precision and recall on rare events, why PR-AUC suits fraud better than ROC-AUC, what a calibrated probability is, how an expected cost turns a probability into a decision, and what a bootstrap interval says. If you already use all five at work, skim the boxes and run the checks.
Every claim in this project, that a training set leaks, that two feature computations agree, that a model is better, needs ground truth to be checked against. Real card data cannot be shared, and even if it could, nobody knows which unreported purchases were fraud. So the lab generates its own world, in which every pattern, every shift and every delay is known. This lesson explains that world and the most important property of fraud labels: they arrive late.
A model is only as good as the data it learns from and the data it reads. Bad data rarely announces itself: a file with negative amounts, a day delivered twice, a currency that changed upstream, or a half-written file still loads into a DataFrame without an error. If the pipeline builds features from it, every feature table, every training set and every model downstream inherits the problem, and finding the cause later is far harder than refusing the file at the door.
A machine-learning pipeline is a chain of datasets, each built from earlier ones: today's validated purchases, today's features, the training set, the model, the drift report. Classic schedulers describe the chain as tasks ("run script A, then script B") and leave the datasets implicit, which makes three everyday questions hard: which version of the features did this model use, what must be rebuilt after yesterday's file is fixed, and is today's drift report up to date?
Kestrel Pay's notebook model joined each purchase to its customer's latest statistics. For a purchase three weeks old, "latest" meant statistics computed today, including the chargeback that purchase itself caused. The model learned that fraud is a purchase by a customer with recent chargebacks, which is true in the notebook and useless at the moment of the purchase, when the chargeback has not happened yet.
Some of the strongest fraud signals are about the last few minutes: a burst of tiny purchases, a third purchase in an hour, a device the customer has never used. Batch features computed once a day cannot see them. They have to be computed at the moment of the purchase, from the customer's recent history, in milliseconds.
A fraud model is not judged by its accuracy or even its ROC-AUC. It is judged by what its decisions cost: fraud let through, analysts' time spent on reviews, good customers declined. This lesson builds a model for that judgement: a gradient-boosted tree model trained on matured, recent data, calibrated so that its probabilities can be multiplied by money, evaluated out of time, turned into decisions by a cost rule, and documented in a model card.
"Which model declined this customer's purchase on 9 September, what did it know about them, and why was that model serving?" Kestrel Pay could not answer that question. A model registry exists to answer it from records instead of memory. This lesson builds one from three PostgreSQL tables, shows how aliases separate "a model exists" from "a model serves", and how hashes make the records trustworthy.
The scoring service is where the design meets the card network: a request arrives during an authorisation, and an answer must leave within tens of milliseconds, every time, whatever state the rest of the system is in. This lesson builds that service with BentoML and covers the decisions that matter in production: validating input, reading features within their freshness limits, degrading safely instead of failing, scoring a challenger without risk, swapping models without a r
A newly trained model is a hypothesis: "this model would have cost less than the one serving". Kestrel Pay used to test that hypothesis by copying the new model onto the server and watching what happened. This lesson replaces that with evidence: the challenger is scored in shadow on live traffic, compared with the champion on matured labels with a paired bootstrap, protected by a per-category guard, promoted by moving an alias, and reversible by moving it back.
The world changes after a model is trained. Customers spend more before the holidays, a merchant's card reader is skimmed, a fraud ring finds a new way to cash out. Kestrel Pay noticed its gift-card problem three weeks late, from losses. This lesson builds the earlier warning, daily drift reports, and the harder part: deciding when retraining can help, when the labels that would teach a new model are still days away.
A model in production is a service like any other, plus a few failure modes of its own. This lesson puts the operational pieces together: what the service measures, how alert rules are written and unit-tested, what the two dashboards show, how secrets and permissions are arranged, and how the tests are layered from a 15-second unit suite to a full lab run.
Starting point: a copy of the project source and a workstation you may administer. Finishing point: Docker answers with enough resources, and the four lab ports are known to be free or noted for replacement.
Starting point: the workstation checks passed. Finishing point: a settings file Compose reads, with your project prefix and four free ports; no container exists yet.
Starting point: settings created; internet access for downloads. Finishing point: every static check passes and the pipeline and scoring images exist.
Starting point: both images exist; no lab containers are running. Finishing point: every service is running and healthy, only four ports are published, all on 127.0.0.1, and the scoring service answers without a model.
Starting point: the lab is running with an empty history. Finishing point: 56 days of history are validated, turned into features and loaded into Feast; model v1 is registered as champion and serving.
Starting point: model v1 is serving. Finishing point: twenty live days have been scored and processed; drift was detected, retraining started from the sensor, the challenger was shadow-scored, and the gate promoted it.
Starting point: the live period has finished. Finishing point: you have proved that serving and training compute the same features, seen what a leaky training set looks like, and watched a bad delivery be stopped.
Starting point: the live period has finished. Finishing point: you have measured latency at 100 requests per second, seen a malformed request refused, made the staleness alert fire, rolled the champion back and forward, and watched the service refuse a tampered model.
Starting point: any state; the step removes the lab first. Finishing point: every acceptance stage passes on a fresh lab, with the evidence in runs/<time>/.
Starting point: any state, including after a failed step. Finishing point: nothing with the project's prefix remains; unrelated Docker data is untouched.
Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.
Runs entirely on your own workstation with Docker: no cloud account or payment is used, and all data is synthetic. The container images use about 5 GB of disk. Workstation, network and Docker licensing terms remain your responsibility.
Vectametric Project Source Licence (2026-09-27): personal learning, modification/deployment and attributed portfolio/interview demonstrations are permitted. Lawfully obtained copies remain usable after online access expires. Do not redistribute original source or the Source Pack; commercial/client production use requires separate permission. Third-party terms remain separate. See included LICENSE.txt and the Project Source Licence section of the site Terms.
You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.
Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.
No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.
The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.
The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.
Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.
Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy