Card-Fraud Scoring with a Feature Store, Delayed Labels and Gated Retraining

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.

What you will build and explain

  • Explain and prevent leakage and training-serving skew, prove a training set is point-in-time correct, and prove that serving computes the same features as training.
  • Design an ML pipeline as partitioned Dagster assets with data contracts, blocking checks, lineage and a sensor, and recover from a bad delivery.
  • Train, calibrate and threshold a classifier for a business cost, and evaluate it out of time with matured, delayed labels.
  • Release models safely with a registry, lineage and integrity hashes, shadow scoring, a paired-bootstrap promotion gate and rollback.
  • Serve decisions with validation, freshness limits, degraded mode and verified hot reload, and operate them with metrics, unit-tested alert rules and dashboards.
  • Detect drift, decide when retraining can help under label delay, and discuss the design, its limits and its production alternatives in an interview.

Before you begin

  • Python with functions, classes and modules, and reading pandas code; training and validation splits, overfitting, precision and recall; basic SQL; docker compose up, logs, exec and run; reading short shell scripts and YAML.
  • A workstation with Docker Engine 27+ and the Compose plugin 2.30+, 4 CPU cores and 8 GB of memory for Docker, 15 GB of free disk and a browser. Feature stores, point-in-time joins, label delay, data contracts, Dagster, calibration, model registries, promotion gates, drift and monitoring are taught.

Curriculum

Learning topics (13)
  1. Follow one purchase to a decision and one day to a promoted model

    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.

  2. Prepare the workstation and the statistics you will need

    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.

  3. A world with known answers, and labels that arrive late

    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.

  4. Refuse a bad delivery before it spreads

    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.

  5. Orchestrate data, not tasks

    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?

  6. Point-in-time training sets and an online store

    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.

  7. One definition, two executions, proven equal

    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.

  8. Train, calibrate and evaluate for a business cost

    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.

  9. Versions, aliases, lineage and integrity

    "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.

  10. Degraded mode, shadow scoring and verified hot reload

    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

  11. A statistical gate, shadow evidence and one-command rollback

    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.

  12. Detect drift and decide when retraining can help

    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.

  13. Metrics, tested alerts, dashboards, secrets and tests in layers

    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.

Practical build steps (10)
  1. Prepare the workstation

    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.

  2. Create the lab inputs

    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.

  3. Check and build

    Starting point: settings created; internet access for downloads. Finishing point: every static check passes and the pipeline and scoring images exist.

  4. Start the lab

    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.

  5. Bootstrap the history

    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.

  6. Run the live period

    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.

  7. Drill the pipeline

    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.

  8. Drill the service

    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.

  9. Run the automated checks

    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>/.

  10. Remove the lab

    Starting point: any state, including after a failed step. Finishing point: nothing with the project's prefix remains; unrelated Docker data is untouched.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

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.

Licence and completion

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.

Questions about projects

Do I need a cloud account?

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.

Can I read the code with Learning Access?

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.

Are cloud charges included?

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.

Does the project include troubleshooting and interview preparation?

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.

How long can I use the project?

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.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

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