From R&D lab to Datalab: the route of a machine learning model
owner Eva Mollast validated 2026-10-20version 0.1draft
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.
One loop, one crossing — R&D iterates (code → training → MLflow → a person → code). Everything that
goes to Datalab goes through the Decision Gate, over the only connection between the two: R&D pushes, nothing
connects back.
The trained model crosses, with its experiment — Datalab runs the model R&D trained; retraining stays
with R&D in MLflow. The experiment travels along: parameters and tuning, the training data window, the scores to
match and the input/output schema.
Datalab supplies the data in Azure — the model may run there on different data than in R&D (another
frequency, another API). A data contract and MLOps monitoring for drift, data quality and performance should
cover that gap.
The R&D half runs today; Datalab's half is in development — the R&D steps run for the influent
forecast; the release push, the Decision Gate, the Azure pipeline and the Azure ML steps are being built (§5).
The route at a glance
The figure shows the whole route.
R&D toolingDecision GateDatalab (Azure)area
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
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.
R&D labGitea repo forecast
The code and the workflows of
the influent forecast live in the Gitea repo forecast.
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.
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:
The trained model — the version a person promoted in MLflow, named by its version number.
Parameters and tuning — the chosen hyperparameters, plus the search space and trials, so it is clear how
the model was made.
The training data — the exact time window and split, a fingerprint of the dataset and the feature list,
so Datalab can verify that its own data produces the same set.
The scores to match — for instance the error per forecast horizon; the baseline for the check at the gate
and for monitoring in Azure.
The model's input/output schema — what goes in and what comes out, with metadata such as the cells over
which precipitation is averaged.
Code version and environment — which commit and which dependencies.
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
Decision GateDevOps repo = Decision Gate
Datalab's fork
of the R&D repo, where R&D releases arrive (§4).
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.
DatalabAzure pipeline
Deploys the release: it registers the model
in Azure ML and sets up the scheduled job.
DatalabAzure ML registry
Keeps each handed-over model version.
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:
One connection, one way. R&D may connect to Datalab, and this is the only connection: R&D pushes
a release to the gate. The token for it is narrowly scoped: it may push to the gate's upstream branch and nothing
else. Nothing connects back from Datalab or Azure to R&D.
No R&D endpoints in Azure. In Azure the model does not call R&D's APIs. Datalab supplies the data
from its own sources, of the same quality, and runs its own MLOps monitoring and drift detection.
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:
Data drift — the distribution of the input compared with the training data.
Prediction drift — the distribution of the output compared with the validation data.
Data quality — empty values, type errors and values outside the range seen in training.
Feature attribution drift — whether the importance of the features shifts (in preview).
Model performance — the error against the measured values once they arrive, for instance MAE or RMSE (in
preview).
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.
Input — a release from R&D, pushed over the one connection: the code at a fixed commit and the trained
model with its experiment (§2), checked against the agreed data contract (§3).
Trigger — R&D makes the release after the human in the loop has judged the model in MLflow.
Automated checks — the checks on the pull request verify that:
the release is complete;
the tests pass and the security scan is clean;
the data contract fits the model's input schema;
every input can be supplied in Azure without an R&D endpoint;
the trained model, run on Datalab's data over the experiment's validation window, reaches the scores in the
experiment within an agreed margin. A gap here is training–serving skew, caught before the model goes
live.
Decision — an approver from Datalab, possibly together with R&D, merges the pull request.
Outcome — pass: the release moves on to Datalab's repo in the Data estate, and the Azure pipeline
registers the model and schedules it. Fail: the release is refused, and the reason goes to the R&D team as a
message, since nothing connects back.
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.
Step
Status
Gitea repo forecast
in use
Gitea Actions train.yml
in use
MLflow (R&D)
in use
MLflow promotion (human in the loop)
in use
Release push (R&D → gate)
in development
DevOps repo = Decision Gate
in development
Datalab repo (Data estate)
in use
Azure pipeline
in development
Azure ML registry
in development
Azure ML workspace, scheduled job
in development
Open questions
What signal starts the release? A person decides, but how that decision becomes a push to the gate is not
yet fixed: a release tag, or only a version promoted in MLflow.
Who approves at the gate, and what margin on the scores? §4 proposes the checks; the approver and the
margin the model has to stay within on Datalab's data are still to be agreed.
Who maintains the fork and Datalab's repo, and how does a passed release move from one to the other?
What is in the data contract, and who signs it? §3 proposes the fields; R&D and Datalab still have to
agree them per model.
Who at R&D receives an alarm, and when does it lead to retraining? Nothing connects back from Azure,
so an alarm reaches R&D as a notification to the R&D team.
How is a model rolled back in Azure? In the R&D lab it is one alias on the previous version; Datalab's
equivalent is not yet described.
About working description of the route; this page is the place where the route is discussed
Tooling hand-written inline SVG, no chart libraries