Reinforcement learning Gymnasium environments for hemostasis and anticoagulation management
Project description
HemoSim
Reinforcement learning Gymnasium environments for hemostasis and anticoagulation management.
Installation
pip install hemosim
Environments
| Environment | Description | Observation | Action |
|---|---|---|---|
hemosim/WarfarinDosing-v0 |
90-day warfarin titration | Box(8) | Box(1) |
hemosim/HeparinInfusion-v0 |
5-day heparin infusion | Box(6) | Box(2) |
hemosim/DOACManagement-v0 |
365-day DOAC selection | Box(8) | MultiDiscrete(3,3) |
hemosim/DICManagement-v0 |
7-day DIC management | Box(8) | MultiDiscrete(4,4,3,3) |
Quick Start
import gymnasium as gym
import hemosim
env = gym.make("hemosim/WarfarinDosing-v0")
obs, info = env.reset(seed=42)
for _ in range(90):
action = env.action_space.sample()
obs, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
break
env.close()
License
MIT License. Copyright (c) 2026 Hass Dhia, Smart Technology Investments Research Institute.
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
hemosim-0.1.0.tar.gz
(652.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hemosim-0.1.0-py3-none-any.whl
(35.0 kB
view details)
File details
Details for the file hemosim-0.1.0.tar.gz.
File metadata
- Download URL: hemosim-0.1.0.tar.gz
- Upload date:
- Size: 652.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
784f471c8042700c32a0c6e9455696d9c2031c983874975457a4338abd2640ca
|
|
| MD5 |
5f78e3b1f06c55cf718138094a21c053
|
|
| BLAKE2b-256 |
dffcd21f3eb83ba978b50bdc321c5256650300b0e410c73f12a598a2f493c338
|
File details
Details for the file hemosim-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hemosim-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feef281d0a985dfff6b956ebb2950c752f8335bb13928b3b35d1df4c723ea659
|
|
| MD5 |
a45e63d39d9d57f46ee2e79a131e25d0
|
|
| BLAKE2b-256 |
381a93776f2a368a8ea015236f655ae24914a7fd6bbb984e1102ac72531d1324
|