Giter Site home page Giter Site logo

Comments (2)

BDonnot avatar BDonnot commented on August 13, 2024

Hello

As explained in the notebook 0 (last few cells) you can do it this way:

import grid2op
from grid2op.Runner import Runner
env = grid2op.make()
runner = Runner(**env.get_params_for_runner())

Once your runner is initialized, you can use it to compute any number of scenarios that you want, with what is explained in notebook 4:

res = runner.run(path_save="THE\PATH\HERE",
    nb_episode=2,   # number of episode to run, any positive integer
    max_iter=100  # maximum number of steps per episode, any positive integer
)

Sorry if the stuff are not properly organized

Benjamin

from grid2op.

jhmenke avatar jhmenke commented on August 13, 2024

Thanks. It works like this:

env = grid2op.make(...)
runner = Runner(**env.get_params_for_runner(), agentClass=customAgent)
res = runner.run(path_save="customAgentLogs", nb_episode=1, max_iter=1000, pbar=True)

Maybe such a working example could be included in the documentation? That's where i looked.

from grid2op.

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.