Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AllieUbisse/5bd1c710e39880a8e65db0679d7b320f to your computer and use it in GitHub Desktop.
Save AllieUbisse/5bd1c710e39880a8e65db0679d7b320f to your computer and use it in GitHub Desktop.
with mlflow.start_run(experiment_id=1, run_name="top_lever_run") as run:
with mlflow.start_run(experiment_id=1, run_name="subrun1",nested=True) as subrun1:
mlflow.log_param("p1","red")
mlflow.log_metric("m1", 5.1)
with mlflow.start_run(experiment_id=1, run_name="subsubrun1",nested=True) as subsubrun1:
mlflow.log_param("p3","green")
mlflow.log_metric("m3", 5.24)
with mlflow.start_run(experiment_id=1, run_name="subsubrun2", nested=True) as subsubrun2:
mlflow.log_param("p4","blue")
mlflow.log_metric("m5", 3.25)
with mlflow.start_run(experiment_id=1, run_name="subrun2", nested=True) as subrun2:
mlflow.log_param("p2","magenta")
mlflow.log_metric("m2", -.25)
@AllieUbisse
Copy link
Author

Thanks for sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment