OpenAI Gym environment for kidney exchange.
pip install -e .
- Python
- OpenAI Gym
- NumPy
- SciPy
- NetworkX
- Matplotlib (visualization)
- OpenAI Baselines (DQN example)
See the files in examples/
and run them, substituting appropriate
parameters.
The components of the environment are split into several directories.
Each component is modular and described in more detail in the README
located in the respective directory. Here is a brief overview.
_solver/
contains James Trimble's kidney solver. This should not be modified.embeddings/
contain modules which embed the kidney exchange graph into a fixed-size vector.envs/
has only the main kidney environment driver.loggers/
implement different means to record experimental output from the environment.models/
determine how the kidney exchange evolves over time.wrappers/
contains auxiliary classes for modifying the environment.
Most classes inherit from an abstract class specifying the expected methods every subclass must implement.