Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hemosim-0.1.0-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

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

Hashes for hemosim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 784f471c8042700c32a0c6e9455696d9c2031c983874975457a4338abd2640ca
MD5 5f78e3b1f06c55cf718138094a21c053
BLAKE2b-256 dffcd21f3eb83ba978b50bdc321c5256650300b0e410c73f12a598a2f493c338

See more details on using hashes here.

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

Hashes for hemosim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 feef281d0a985dfff6b956ebb2950c752f8335bb13928b3b35d1df4c723ea659
MD5 a45e63d39d9d57f46ee2e79a131e25d0
BLAKE2b-256 381a93776f2a368a8ea015236f655ae24914a7fd6bbb984e1102ac72531d1324

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page