-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error occurs while training with rllib ray PPO #365
Comments
Same here. The error message is Can be solved by changing |
Thanks for your advice. By the way, can you train and load the agent with rllib ray correctly? I haven't met this kind of error with stablebaselines. While the code of submission scoring system cannot be modified. So it still need to be solved without changing any package source code. |
No. I overwrite ray's
I plan to write a submission agent without ray, so this issue will not appear. A bit more details on this issue... |
Hello, Thanks for noticing this bug. I'll try to fix it to make the training with Ray possible. Not sure when though :-/ Out of curiosity, which version of lightsim2grid are you using? |
It is |
Thanks for your geneous reply! I'll have a try on it! |
Hello, Sorry for late reply, i could not work on this earlier (parental leave until yesterday) To avoid any issue what you can do is a 2 steps procedure: Generate files with the classes definition that you will use during training.For example call a script "generate_my_classes.py" with: from grid2op import make
from grid2op.Reward import RedispReward
from lightsim2grid import LightSimBackend
env = make('l2rpn_wcci_2022', reward_class=RedispReward, backend=LightSimBackend())
env.generate_classes() and then you run this script: Run you ray script normallyJust run the script in the example and it works |
Fixed in latest version. Hopefully |
Environment
1.7.2
ubuntu18.04.5
Bug description
When using rllib ray to train a PPO agent for competition L2RPN2022, I met such an error:
I have no idea about 'process_grid2op_shunt_data' and there's little information about it.
How to reproduce
Code snippet
Current output
Expected output
The text was updated successfully, but these errors were encountered: