Skip to content

Commit bb2a8ea

Browse files
committed
Copy params before removing
1 parent 2bdb53b commit bb2a8ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AIAgent/run_training.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def objective(
256256
torch.save(model.state_dict(), CURRENT_MODEL_PATH)
257257
mlflow.log_artifact(CURRENT_MODEL_PATH, str(epoch))
258258

259-
model_kwargs = trial.params
259+
model_kwargs = trial.params.copy()
260260
model_kwargs.pop("lr")
261261
model_kwargs.pop("batch_size")
262262
model_kwargs["normalization"] = True # TODO: avoid hardcoding

0 commit comments

Comments
 (0)