log_run
Record a pipeline step execution with parameters, metrics, artifacts, parent run, and file versions so experiment runs stay traceable and data changes are detectable.
Instructions
Record one execution of a step: params, metrics, artifacts and its parent run in the experiment tree. The versions (SHA-256) of the step's input and output files are recorded too, so later runs can tell when the data changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | Yes | Name of the step that was executed | |
| tags | No | Optional tags, e.g. ['hpo', 'gcn'] | |
| notes | No | Free-text notes about the run | |
| params | No | Parameters actually used for this run | |
| status | No | Run outcome | succeeded |
| history | No | Step-wise metrics for curves, e.g. [{'epoch': 1, 'train_loss': 0.9, 'val_rmse': 1.1}, ...] | |
| metrics | No | Numeric results, e.g. {'val_rmse': 0.61, 'r2': 0.78} | |
| sweep_id | No | Sweep this run is a trial of (from start_sweep) | |
| artifacts | No | Files produced (paths relative to project), as a list or {name: path}; copied into .mltree/runs/<run_id>/ when <= 50 MB | |
| record_data | No | Fingerprint the step's input/output files now (data versions). False for results from elsewhere | |
| parent_run_id | No | Run this one branches from (e.g. the base config of an HPO trial) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||