Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/misc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ Changelog


See https://github.com/DLR-RM/rl-baselines3-zoo/blob/master/CHANGELOG.md

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see line just above

Bug Fixes:
^^^^^^^^^^
- Remove trial_id check when loading Optuna study (@rclarsfull)

Contributors:
-------------
- @rclarsfull
2 changes: 1 addition & 1 deletion rl_zoo3/exp_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def read_hyperparameters(self) -> tuple[dict[str, Any], dict[str, Any]]:
else:
raise ValueError(f"Hyperparameters not found for {self.algo}-{self.env_name.gym_id} in {self.config}")

if self.storage and self.study_name and self.trial_id:
if self.storage and self.study_name:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this check is needed (see failures on CI), instead we could allow passing a special value like -1 to allow loading the best trial

print("Loading from Optuna study...")
study_hyperparams = self.load_trial(self.storage, self.study_name, self.trial_id)
hyperparams.update(study_hyperparams)
Expand Down
Loading