You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue while running the train() function in the tutorial .ipynb file. The error occurs because the wandb attribute in the SAC class is not initialized before being accessed in the learn() function.
I encountered an issue while running the train() function in the tutorial .ipynb file. The error occurs because the wandb attribute in the SAC class is not initialized before being accessed in the learn() function.
Steps to Reproduce:
from train import train
config = {
"simulator.name": "macro",
"model.name": "sac",
"simulator.city": "nyc_brooklyn",
"model.cplexpath": None,
"model.checkpoint_path": "SAC_custom",
"model.max_episodes": 5,
}
train(config)
AttributeError: 'SAC' object has no attribute 'wandb'
Suggested Fix:
Add self.wandb = None to the init method of the SAC class in src/algos/sac.py to ensure the attribute is initialized.
Thank you for the repository and the tutorial!
The text was updated successfully, but these errors were encountered: