A simple Healthcare-themed Gymnasium for benchmarking Reinforcement Learning algorithms
Project description
HeartPole
The Why
HeartPole is a simple Gymnasium for benchmarking Reinforcement Learning algorithms. Think CartPole for healthcare. It is meant as a first test for reinforcement learning techniques aimed at the Healthcare domain, before moving on to actual clinical data like MIMIC III
This project includes a tutorial on creating your own Gymnasium environment, using HeartPole as an example, as well as a writeup of experimental results, submitted to HEALTHINF conference.
The What
You are a developer working on an important project. You want to maximize your productivity, but not at the expense of health - any serious health issue will negate all the effects of increased productivity.
Action space is discrete with 4 possible actions:
[do_nothing, drink_coffee, drink_beer, sleep]
Observation space is continious, with 6 dimensions:
['alertness', 'hypertension', 'intoxication',
'time_since_slept', 'time_elapsed', 'work_done']
Your productivity mainly depends on alertness, you get a reward of 1 for every unit of work done and a reward of -100 if you suffer a heart attack.
The How
Install with
pip install heartpole
Create an environment with
from heartpole import HeartPole
env = HeartPole()
and use your favourite reinforcement learning algorithm, for example, from keras-rl
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file heartpole-1.2.tar.gz
.
File metadata
- Download URL: heartpole-1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e2b008212d5f0d4af095903a09ad5bb3ae05d401ae6ff84f288a74e97b3c2fb |
|
MD5 | b892b07c0daf418099147884327e545b |
|
BLAKE2b-256 | 17b0471f6f3aed1e5517432202e23e3b8d82f8a9a6d26ab570c4a158337ea461 |
File details
Details for the file heartpole-1.2-py3-none-any.whl
.
File metadata
- Download URL: heartpole-1.2-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.5 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6bf630ef7b8977f5568da7078bae05965b6ea3606b24e0587eb7ceecb20bb94 |
|
MD5 | 187683edc669bec2b03178444c28139b |
|
BLAKE2b-256 | b82e8cee0f9b503d2f172acb30eb993af1f7be8d54e179f0187ece6a58422358 |