Coder Social home page Coder Social logo

fmarten99 / l2rpn-baselines Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rte-france/l2rpn-baselines

0.0 0.0 0.0 1.26 MB

L2RPN Baselines a repository to host baselines for l2rpn competitions.

Home Page: https://l2rpn-baselines.readthedocs.io/en/stable/

License: Mozilla Public License 2.0

Shell 0.41% Python 99.38% Makefile 0.10% Batchfile 0.11%

l2rpn-baselines's Introduction

L2RPN_Baselines

Repository hosting reference baselines for the L2RPN challenge

Install

Requirements

python3 >= 3.6

Instal from PyPI

pip3 install l2rpn_baselines

Install from source

git clone https://github.com/rte-france/l2rpn-baselines.git
cd l2rpn-baselines
pip3 install -U .
cd ..
rm -rf l2rpn-baselines

Contribute

We welcome contributions: see the contribute guide for details.

Get started with a baseline

Say you want to know how you compared with the "DoubleDuelingDQN" baseline implementation in this repository (for the sake of this example).

Train it (optional)

As no weights are provided for this baselines by default (yet), you will first need to train such a baseline:

import grid2op
from l2rpn_baselines.DoubleDuelingDQN import train
env = grid2op.make()
res = train(env, save_path="THE/PATH/TO/SAVE/IT", iterations=100)

You can have more information about extra argument of the "train" function in the CONTRIBUTE file.

Evaluate it

Once trained, you can reload it and evaluate its performance with the provided "evaluate" function:

import grid2op
from l2rpn_baselines.DoubleDuelingDQN import evaluate
env = grid2op.make()
res = evaluate(env, load_path="THE/PATH/TO/LOAD/IT.h5", nb_episode=10)

You can have more information about extra argument of the "evaluate" function in the CONTRIBUTE file.

l2rpn-baselines's People

Contributors

bdonnot avatar bwitherspoon avatar gaetanserre avatar marota avatar mjothy avatar nmegel avatar tezirg avatar

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.