Skip to main content

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

Metadata

Release files for heartpole 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heartpole 1.2
File Size Uploaded Provenance Actions
heartpole-1.2.tar.gz 3.5 kB Without provenance Details for heartpole-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for heartpole 1.2
File Interpreter ABI Platform Actions
heartpole-1.2-py3-none-any.whl Python 3 none any Details for heartpole-1.2-py3-none-any.whl

Total release size: 7.6 kB

Release files / heartpole-1.2.tar.gz

Download URL heartpole-1.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4e2b008212d5f0d4af095903a09ad5bb3ae05d401ae6ff84f288a74e97b3c2fb
BLAKE2b-256 checksum
How to use checksums
17b0471f6f3aed1e5517432202e23e3b8d82f8a9a6d26ab570c4a158337ea461
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.5 Darwin/23.6.0

Release files / heartpole-1.2-py3-none-any.whl

Download URL heartpole-1.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6bf630ef7b8977f5568da7078bae05965b6ea3606b24e0587eb7ceecb20bb94
BLAKE2b-256 checksum
How to use checksums
b82e8cee0f9b503d2f172acb30eb993af1f7be8d54e179f0187ece6a58422358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.5 Darwin/23.6.0

Security for heartpole 1.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page