Skip to content

Commit

Permalink
skipping unavailable metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
jrybicki-jsc committed Feb 5, 2024
1 parent e1d517b commit d9110c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model_search_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit d9110c7

Please sign in to comment.