Skip to content

Commit 3a8d84b

Browse files
committed
different api used for start run
1 parent 582c183 commit 3a8d84b

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
@@ -56,7 +56,7 @@ def download_artifacts(connection_id, **context):
5656
def uploat_to_mlflow(temp_dir, **context):
5757
from utils import get_mlflow_client
5858
import shutil
59-
59+
import mlflow
6060

6161
client = get_mlflow_client()
6262
parms = context["params"]
@@ -85,7 +85,7 @@ def uploat_to_mlflow(temp_dir, **context):
8585
metrics=['mean_test_score', 'mean_fit_time']
8686

8787
for i, p in enumerate(dct['params'].values()):
88-
with client.create_run(experiment_id):
88+
with mlflow.start_run():
8989
p = json.loads(p.replace('\'', '"'))
9090
for parname, parvalue in p.items():
9191
client.log_param(parname, value=parvalue)

0 commit comments

Comments
 (0)