Waterschap Brabantse Delta · R&D lab · explainer

From R&D lab to Datalab: the route of a machine learning model

owner Eva Mol last validated 2026-10-20 version 0.1 draft
A machine learning model built in the R&D lab ends up running at Datalab, the data team on the operations (Exploitatie) side. This page sets out the route between the two. In the R&D lab a developer pushes code to the Gitea repo forecast. Gitea Actions trains the model and registers it in MLflow, and a person decides what happens next. R&D then pushes a release to the Decision Gate on Datalab's side: a fork of the R&D repo in Azure DevOps. From there Datalab takes over: its own repo in the Data estate, an Azure pipeline, the Azure ML registry, and an Azure ML workspace that runs the model as a scheduled job.

The route at a glance

The figure shows the whole route.

R&D toolingDecision Gate Datalab (Azure)area
Route of a model from the R&D lab to DatalabDeveloper: VS Code, Python and JavaScript, with an arrow down into the R&D lab. R&D lab: Gitea repo forecast, then Gitea Actions train.yml, then MLflow (R&D); an arrow labelled Human in the loop runs from MLflow back to the repo. Two arrows cross into Datalab's area to the Decision Gate, a DevOps repo that is a fork of the R&D repo: one carries the code from the repo, the other carries the trained model and its experiment (parameters, tuning, data window, scores, schema) from MLflow. From the gate: Datalab's repo in the Data estate, then an Azure pipeline, then the Azure ML registry, then an Azure ML workspace with a scheduled job. Developer R&D lab Datalab VS Code / Python / JavaScript Gitea repo forecast Gitea Actions train.yml MLflow (R&D) DevOps repo = Decision Gate (fork of R&D repo) Datalab repo (Data estate) Azure pipeline Azure ML registry Azure ML workspace scheduled job Human in the loop code trained model + experiment: parameters, tuning, data window, scores, schema
The route of a model from the R&D lab to Datalab. Purple is R&D tooling, orange the Decision Gate, blue Datalab's Azure environment. Both arrows into Datalab are one release pushed by R&D; nothing connects back (§3). On a narrow screen, scroll the figure sideways.

Step by step

In the R&D lab: train and judge

  1. DeveloperVS Code / Python / JavaScript

    The developer works on a laptop. Experimental work goes on a branch, because pushes to main can start a training run.

  2. R&D labGitea repo forecast

    The code and the workflows of the influent forecast live in the Gitea repo forecast.

  3. R&D labGitea Actions train.yml

    The workflow runs on a push to main that touches model code, weekly on fresh data, or when started by hand. It builds the trainer and runs it. The trainer reads the measurements, trains, logs metrics to MLflow and registers a new version of the model, without an alias. The new version does nothing yet.

  4. R&D labMLflow (R&D)

    A person compares the new version with the live version on the metrics that matter for that model, for instance the mae (mean absolute error, m³/h) for the influent forecast, and promotes it by setting the alias production. This is the only manual step in the R&D lab's training loop, and it is the human in the loop: the person decides what changes in the code, and also when the work goes on to the Decision Gate.

The crossing: the code, the trained model and its experiment go to the Decision Gate together, as one release that R&D pushes over the only connection between the two (§3). The gate sits on Datalab's side.

Besides the trained model, the release carries what Datalab needs to run the model and to check it:

Retraining stays with R&D: a new version is trained and judged in MLflow, and goes through the gate again.

At Datalab: run in Azure

  1. Decision GateDevOps repo = Decision Gate

    Datalab's fork of the R&D repo, where R&D releases arrive (§4).

  2. DatalabDatalab repo (Data estate)

    A release that passes the gate moves on to Datalab's own repo in the Data estate, in Azure DevOps. Datalab's own work for the model, such as the pipeline and the data sources, lives there.

  3. DatalabAzure pipeline

    Deploys the release: it registers the model in Azure ML and sets up the scheduled job.

  4. DatalabAzure ML registry

    Keeps each handed-over model version.

  5. DatalabAzure ML workspace, scheduled job

    An Azure ML workspace runs the model on a schedule, and stores its input and output for monitoring (§3).

Connections, data and monitoring

Two rules govern the connections:

Datalab is therefore responsible for the data the model runs on in Azure, and that data can reach the model by another route than in R&D: R&D may have higher-frequency data, or the two may fetch the same quantity through different APIs, for instance directly from KNMI (the Dutch national weather service) on one side and through WIWB (the water sector's shared weather-data service) on the other. The model then runs on input that differs from what it was trained on. That gap is called training–serving skew; a change in the input over time is data drift. Two things should cover it: a data contract and MLOps monitoring.

Data contract

Per model input, agreed between R&D and Datalab: source and product, time resolution and aggregation, spatial unit, units, time zone, latency, and how late corrections are handled. The model's input schema from the release is its technical core.

Precipitation shows why. The forecast model trains on, among others, WIWB radar precipitation (Knmi.International.Radar.Composite.Combined), summed per hour for each ~1×1 km cell. If Datalab fetches the same product its own way, the cells and the hourly aggregation can still differ. That is what the contract has to fix.

MLOps monitoring in Azure

Azure ML model monitoring has built-in signals for tabular models, each with its own metrics and alert threshold:

Google's ML Test Score rubric adds checks around these signals: a notification when a source system changes (for instance a new version of a WIWB product), the same feature values in training and in production, a model that does not grow too stale, numerical stability, no slow regression in run time or resources, and a quick rollback to the previous version.

A scheduled job needs one extra step. Azure ML collects a model's production input and output by itself only for online endpoints; for a batch or scheduled job, Datalab has to store them itself, or there is nothing to monitor.

proposal The fields of the contract, and which checks and thresholds apply to each model, are a proposal, still to be agreed.

The Decision Gate

proposal This section is a proposal, still to be agreed between R&D and Datalab.

The Decision Gate is the one entry from the R&D lab into Datalab's Data estate. It is a fork of the R&D repo on Datalab's side: R&D releases arrive one-way on an upstream branch of the fork, and a pull request into the fork's main branch is the gate, whose checks and approver decide whether a model release from R&D can run in Azure with the same quality as in R&D. R&D judges whether the model is good; the gate judges whether Datalab can run it.

What exists today

Status as of 2026-10-20. “In development” means the step is being built.

Status per step of the route. The R&D half runs; on Datalab's side the Data estate exists and the other steps are in development.
StepStatus
Gitea repo forecastin use
Gitea Actions train.ymlin use
MLflow (R&D)in use
MLflow promotion (human in the loop)in use
Release push (R&D → gate)in development
DevOps repo = Decision Gatein development
Datalab repo (Data estate)in use
Azure pipelinein development
Azure ML registryin development
Azure ML workspace, scheduled jobin development

Open questions

About working description of the route; this page is the place where the route is discussed
Tooling hand-written inline SVG, no chart libraries
Last validated 2026-10-20, Eva Mol
Contact R&D lab · lab.wbd-rd.nl