Home / Use cases

MLOps for trading models

The problem

Financial targets are noisy and the data changes over time. A team can run many experiments and keep the best one, and the best one is often the luckiest. Backtests look strong. Live results are flat. Nobody can say how many times the test set was used before the model was chosen, or what the training compute cost.

What a good solution looks like

  • Splits that respect time. Training, search and holdout periods do not overlap, with a gap where targets look ahead.
  • A locked harness. Splits, scorer and time budget are fixed. Experiments cannot change them.
  • A keep rule set by measured noise. A candidate must beat the current model by more than the spread across random seeds.
  • A holdout with a budget. Each read of the holdout data is counted. When the budget is spent, the search stops or the holdout is renewed.
  • Claimed versus realised. Each promotion records the search score and the holdout score side by side.
  • Measured cost. Compute spend comes from the provider's bill, and each experiment has a cost.
  • Checks for a stopped process. A loop that runs every night and accepts nothing for weeks raises an alert.

How DataBlock approaches it

  1. Review the current path from data to a model in production: splits, selection, promotion and monitoring.
  2. Lock the harness and move the holdout data where research code cannot read it by mistake.
  3. Add tracking: one schema for experiments, with the data version, code version and cost of each run.
  4. Add the promotion gate with counted holdout reads and claimed-versus-realised records.
  5. Add health checks that tell a stopped loop from a healthy, quiet one.
  6. Hand over with docs and a runbook.

Related work

DataBlock has not built a trading-model pipeline for a client yet. Its own MLOps pipelines use each of these mechanisms on the Numerai tournament and on Kaggle competitions. The case study describes what the checks found, including loops that stayed green while they accepted nothing.

Service

This use case maps to MLOps and AI data engineering.

How many times was your test set read before you chose your current model?

Book a 30-minute call

Ask a question