Skip to content

Commit

Permalink
one more thing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrybicki-jsc committed Feb 5, 2024
1 parent d9110c7 commit 0774b1a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions model_search_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,12 @@ def uploat_to_mlflow(temp_dir, **context):
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])

#clean up
if 'temp_dir' in attrs:
shutil.rmtree(path=attrs["temp_dir"])
shutil.rmtree(temp_dir)

setup_task = PythonOperator(python_callable=setup, task_id="setup_connection")
a_id = setup_task.output["return_value"]
Expand Down

0 comments on commit 0774b1a

Please sign in to comment.