Skip to content

Commit d9110c7

Browse files
committed
skipping unavailable metrics
1 parent e1d517b commit d9110c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

model_search_upload.py

+3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def uploat_to_mlflow(temp_dir, **context):
9292
mlflow.log_param(key=parname, value=parvalue)
9393

9494
for m in metrics:
95+
if m not in dct:
96+
continue
97+
9598
print(f"Logging metric {m} {dct[m][i]}")
9699
mlflow.log_metric(key=m, value=dct[m][i])
97100

0 commit comments

Comments
 (0)