Skip to content

Commit fe1575c

Browse files
committed
key value
1 parent 3a8d84b commit fe1575c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model_search_upload.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ def uploat_to_mlflow(temp_dir, **context):
8888
with mlflow.start_run():
8989
p = json.loads(p.replace('\'', '"'))
9090
for parname, parvalue in p.items():
91-
client.log_param(parname, value=parvalue)
91+
client.log_param(key=parname, value=parvalue)
9292

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

9797
#clean up
9898
if 'temp_dir' in attrs:

0 commit comments

Comments
 (0)