Comments (3)
I had the same issue.
What I did to solve this was open 'DoubleDuelingDQN.py' (Since I am in windows it is located in 'C:\Python38\Lib\site-packages\l2rpn_baselines\DoubleDuelingDQN')
Go to line number 101 (in my case it was 131, don't know why it's different for us)
change the line to r_instance = env._reward_helper.template_reward
(Add a _
in front of reward_helper)
I went through the code on GitHub and there it was fixed, using try-catch which is a better way to do it. So I don't know why when I installed l2rpn_baselines using pip like today, it still gave the error. (maybe pip install is using an older version ?)
If u want to use the try-catch version:
replace the line with
try:
# change of name in grid2op >= 1.2.3
r_instance = env._reward_helper.template_reward
except AttributeError as nm_exc_:
r_instance = env.reward_helper.template_reward
from l2rpn-baselines.
Hello, installing from source solves this issue completely :-)
I will try to add a fix to the version available in pip as soon as possible
Sorry for the inconvenience,
Benjamin
from l2rpn-baselines.
Thank you so much for your answers!
from l2rpn-baselines.
Related Issues (20)
- Clean the API for nb_env and MultiEnvironment
- AttributeError: module 'grid2op' has no attribute 'make_new' HOT 3
- AttributeError: 'Tensor' object has no attribute 'numpy' HOT 1
- Question about Deep Q implementation HOT 2
- Failed to install via pypi on Windows HOT 1
- About the "DoubleDuelingDQN" baseline HOT 2
- Tricks for fine-tuning the hyperparameters HOT 1
- Add issue template
- Add PPO with mazerl for example
- PPO with ACME framework
- GymEnvWithHeuristics: fix_action is missing something
- Issue when evaluating trained PPO_RLLIB agent HOT 1
- Make the environments compatible with new gym interface
- Rewrite the readme to use a recent baseline and not a deprecated one
- Have an example using DI-engine, maybe ?
- Issues with retraining from saved agent
- Evaluation with normalised observation and action space is improper for PPO_SB3
- Huge cleaning
- PPO_RLLIB code improvement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from l2rpn-baselines.