ugr-sail / sinergym

Gym environment for building simulation and control using reinforcement learning
https://ugr-sail.github.io/sinergym/
MIT License
134 stars 36 forks source link

(v3.5.1) - WandBLogger compability with previous WandB sessions #428

Closed AlejandroCN7 closed 2 months ago

AlejandroCN7 commented 2 months ago

Description

This PR makes the WandBLogger wrapper compatible with pre-existing WandB sessions. Additionally, some related details have been improved in the tool. For more information, see the changelog.

Motivation and Context

We've noticed that Sinergym can be used in scripts where a WandB session has already been started. The wrapper was incompatible with this use case, such as when using sweeps.

Now, the wrapper can be used with a pre-existing WandB session, without the need to specify the entity or project (which, if provided, will be ignored). It still allows specifying other parameters during construction, maintaining full functionality of the wrapper.

Types of changes

Checklist:

Changelog: