Tracking Experiments with MLflow
Which Attempt Produced This Model File?
The scheduled pump workflow can now prepare a dataset and run a calculation. Suppose we try a different model setting and save another file named model.json. A note says the latest error was lower. Which file belongs to that measurement, and which version of the readings did it use?
A useful experiment record keeps that information together. MLflow is an open-source platform with tools for tracking model development. Its tracking service records attempts and their settings, measurements and saved outputs. Databricks provides a managed integration, while MLflow can also be used elsewhere.
We will start by recording an attempt accurately. Choosing the best model is a later question. A lower number cannot tell us much if we have already mixed one attempt’s score with another attempt’s model file.
The manifest is a small local teaching schema. It does not call MLflow, upload artifacts, train a model or establish that a recorded score is a fair comparison.
Step 1 of 1
One Attempt, Several Kinds of Evidence
The run ID connects these records without making their meanings interchangeable.
| Record | Example | What it tells us |
|---|---|---|
| Run identity | attempt-a | Which execution we are describing |
| Parameter | limit = 10 | A setting supplied to the procedure |
| Metric | mae = 2.5 | A numerical measurement made during that attempt |
| Input identity | maintenance.prepared.readings, version 4 | Which declared dataset the attempt used |
| Artifact | model.json owned by attempt-a | A saved output associated with this attempt |
Run identity
- Example
- attempt-a
- What it tells us
- Which execution we are describing
Parameter
- Example
- limit = 10
- What it tells us
- A setting supplied to the procedure
Metric
- Example
- mae = 2.5
- What it tells us
- A numerical measurement made during that attempt
Input identity
- Example
- maintenance.prepared.readings, version 4
- What it tells us
- Which declared dataset the attempt used
Artifact
- Example
- model.json owned by attempt-a
- What it tells us
- A saved output associated with this attempt
Experiments group related attempts
An attempt identity connects the requested metadata and output ownership. Neither filename order nor the lowest score can replace that identity.