A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

energy-py

Reinforcement learning for energy systems.
https://github.com/ADGEfficiency/energy-py

Category: Energy Systems
Sub Category: Energy System Modeling Frameworks

Keywords

energy reinforcement-learning

Last synced: about 21 hours ago
JSON representation

Repository metadata

Reinforcement learning for energy systems

README.md

energy-py

Build Status

energy-py is a framework for running reinforcement learning experiments on energy environments.

The library is focused on electric battery storage, and offers a implementation of a many batteries operating in parallel.

energy-py includes an implementation of the Soft Actor-Critic reinforcement learning agent, implementated in Tensorflow 2:

  • test & train episodes based on historical Australian electricity price data,
  • checkpoints & restarts,
  • logging in Tensorboard.

energy-py is built and maintained by Adam Green - [email protected].

Setup

$ make setup

Test

$ make test

Running experiments

energypy has a high level API to run a specific run of an experiment from a JSON config file.

The most interesting experiment is to run battery storage for price arbitrage in the Australian electricity market. This requires grabbing some data from S3. The command below will download a pre-made dataset and unzip it to ./dataset:

$ make pulls3-dataset

You can then run the experiment from a JSON file:

$ energypy benchmarks/nem-battery.json

Results are saved into ./experiments/{env_name}/{run_name}:

$ tree -L 3 experiments
experiments/
└── battery
    ├── nine
       ├── checkpoints
       ├── hyperparameters.json
       ├── logs
       └── tensorboard
    └── random.pkl

Also provide wrappers around two gym environments - Pendulum and Lunar Lander:

$ energypy benchmarks/pendulum.json

Running the Lunar Lander experiment has a dependency on Swig and pybox2d - which can require a bit of elbow-grease to setup depending on your environment.

$ energypy benchmarks/lunar.json

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 5 days ago

Total Commits: 14
Total Committers: 2
Avg Commits per committer: 7.0
Development Distribution Score (DDS): 0.214

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Adam Green a****n@a****m 11
Adam Green u****u@i****l 3

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 43
Total pull requests: 26
Average time to close issues: about 1 year
Average time to close pull requests: 4 months
Total issue authors: 10
Total pull request authors: 7
Average comments per issue: 1.33
Average comments per pull request: 0.58
Merged pull request: 10
Bot issues: 0
Bot pull requests: 12

Past year issues: 2
Past year pull requests: 2
Past year average time to close issues: 6 days
Past year average time to close pull requests: 6 days
Past year issue authors: 2
Past year pull request authors: 1
Past year average comments per issue: 1.0
Past year average comments per pull request: 0.0
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ADGEfficiency/energy-py

Top Issue Authors

  • ADGEfficiency (34)
  • fokx (1)
  • KeirSimmons (1)
  • Sudococommunity (1)
  • LucaNicoliYT88 (1)
  • bollegijscoding (1)
  • satishravindran (1)
  • ghost (1)
  • adityauser (1)
  • IanQS (1)

Top Pull Request Authors

  • dependabot[bot] (12)
  • ADGEfficiency (4)
  • hassaku (3)
  • tomharvey (3)
  • KeirSimmons (2)
  • nhoening (1)
  • ghost (1)

Top Issue Labels

Top Pull Request Labels

  • dependencies (12)

Dependencies

requirements.txt pypi
  • click *
  • gym ==0.18.0
  • imageio *
  • pandas ==1.2.3
  • pytest *
  • tdqm *
  • tensorflow ==2.5.0
  • tensorflow-estimator ==2.5.0
  • tensorflow-probability ==0.13.0
setup.py pypi
  • Click *
.github/workflows/test.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite

Score: 5.8916442118257715