In mlflow
, you can run nested runs using the fluent projects API which are collapsable in the UI. E.g. by using the following code (see this for UI support):
with mlflow.start_run(nested=True):
mlflow.log_param("mse", 0.10)
mlflow.log_param("lr", 0.05)
mlflow.log_param("batch_size", 512)
with mlflow.start_run(nested=True):
mlflow.log_param("max_runs", 32)
mlflow.log_param("epochs", 20)
mlflow.log_metric("acc", 98)
mlflow.log_metric("rmse", 98)
mlflow.end_run()
Due to database connection issues, I want to use a single mlflow client across my application.
How can I stack runs, e.g. for hyperparameter optimization, using created runs via MlflowClient().create_run()
?