diff --git a/model_search_upload.py b/model_search_upload.py index 6316b18..edc6439 100644 --- a/model_search_upload.py +++ b/model_search_upload.py @@ -92,6 +92,9 @@ def uploat_to_mlflow(temp_dir, **context): mlflow.log_param(key=parname, value=parvalue) for m in metrics: + if m not in dct: + continue + print(f"Logging metric {m} {dct[m][i]}") mlflow.log_metric(key=m, value=dct[m][i])