Skip to content

Commit d220f75

Browse files
Update generative-proof-of-concept-CPU-preprocessing-in-memory.py
Add run object...
1 parent 336c2e7 commit d220f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generative-proof-of-concept-CPU-preprocessing-in-memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def objective(trial: optuna.Trial) -> float:
172172

173173
tags = {"phase": "poc", "script": os.path.basename(__file__), "trial_number": str(trial.number), "Start_time": str(trial_start_time)}
174174

175-
with mlflow.start_run(run_name=run_name, tags=tags):
175+
with mlflow.start_run(run_name=run_name, tags=tags) as run:
176176
# Log the hyperparameters
177177
mlflow.log_params(params)
178178

0 commit comments

Comments
 (0)