quantlab.tracking.mlflow.MlflowRun#

class quantlab.tracking.mlflow.MlflowRun(mlflow, client, run_id, config)[source]#

Bases: TrackingRun

A tracking run backed by one MLflow run; opened by MlflowTracker.

Examples

>>> import tempfile
>>> from pathlib import Path
>>> store = Path(tempfile.mkdtemp()) / "mlruns"
>>> tracker = MlflowTracker(tracking_uri=f"file:{store}")
>>> with tracker.start_run(project="P", group="P_trial_1", name="n", config={}) as run:
...     isinstance(run, MlflowRun)
True