Skip to content

Commit

Permalink
key value
Browse files Browse the repository at this point in the history
  • Loading branch information
jrybicki-jsc committed Feb 5, 2024
1 parent 3a8d84b commit fe1575c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model_search_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ def uploat_to_mlflow(temp_dir, **context):
with mlflow.start_run():
p = json.loads(p.replace('\'', '"'))
for parname, parvalue in p.items():
client.log_param(parname, value=parvalue)
client.log_param(key=parname, value=parvalue)

for m in metrics:
print(f"Logging metric {m} {dct[m][i]}")
client.log_metric(m, dct[m][i])
client.log_metric(key=m, value=dct[m][i])

#clean up
if 'temp_dir' in attrs:
Expand Down

0 comments on commit fe1575c

Please sign in to comment.