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 "PPO_SB3" 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.PPO_SB3 import train
env = grid2op.make("l2rpn_case14_sandbox")
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.PPO_SB3 import evaluate
env = grid2op.make("l2rpn_case14_sandbox")
res = evaluate(env, load_path="THE/PATH/TO/LOAD/IT", nb_episode=10)
You can have more information about extra argument of the "evaluate" function in the CONTRIBUTE file.
Metadata
Release files for l2rpn-baselines 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| l2rpn_baselines-0.8.0.tar.gz | 214.8 kB | Without provenance | Details |
Release files / l2rpn_baselines-0.8.0.tar.gz
| Download URL | l2rpn_baselines-0.8.0.tar.gz |
|---|---|
| Size | 214.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a251170c3352b856a9628901e68b2d4921e2b17e7ce7392d625b3327eded4da3
|
|
BLAKE2b-256 checksum How to use checksums |
a349a23cd32fd384e4c1c6ea94ba7a5af3f0494a626fd1b11deadc24ecac5fa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.11.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
|
Security for l2rpn-baselines 0.8.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.