Coder Social home page Coder Social logo

Comments (3)

vishrutmishra avatar vishrutmishra commented on June 20, 2024 2

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.

BDonnot avatar BDonnot commented on June 20, 2024

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.

19ahmed99 avatar 19ahmed99 commented on June 20, 2024

Thank you so much for your answers!

from l2rpn-baselines.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.