Git Product home page Git Product logo

hmarl_dt's Introduction

HMARL

This Repository contains all the codes and relavant resources for the paper titled 'Demystifying Complex Treatment Recommendations: A Hierarchical Cooperative Multi-Agent RL Approach' published in IJCNN 2023 conference. Please cite the paper.

Prerequisites

  • Python version >= 3.5.2
  • TensorFlow 1.14.0

Project structure

  • data : create a folder named 'data' to save the data prepared from the preprocessing script that is used for training.
  • sql : data extraction sql codes using MIMIC-IV database. Run the query and save results to data dir with the same name of the queries respectively.
  • preprocessing : read multiple extracted data tables from sql codes, and save processed data results to data dir
  • main_discrete : Discrete action space implementation of algorithm, neural networks, setting.py containing all hyperparameters.
  • main_continuous : Continuous action space implementation of algorithm, neural networks, setting.py containing all hyperparameters.
  • additional_resources : contains architecture diagrams and additional experiemental results that could not be included in the paper due to space limitations.
  • baseline : contains the codes of Qmix baseline for both continuos and discrete action spaces. Most other baselines used the codes shared by the authors.

Training

Extract data from MIMIC-IV database, perform the preprocessing code preprocess_4h_mimic.py and save the processed data to data dir For all algorithms,

  • cd into the HMARL_* folder, HMARL_Discrete is used for training with discrete action space and HMARL_Continuous is for continuous action space.
  • Execute contextual state scripts using integrate_previous_steps.py
  • Execute training script, e.g. python train_*.py -train_FM 1 -e 1, if training the state and contextual feature embedding and using them as inputs to the model. Otherwise, set -e and -train_FM to 0.
  • All models of Root agent, IV-only agent, Vaso-only agent, and Qmix agent will be saved to models dir under train_* respectively.
  • Training results will be saved to train_Embedding or train depending on argument -e 1 or -e 0

Testing

  • Testing is automatically executed after training. Testing results will be saved to test_Embedding or test depending on argument -e 1 or -e 0

hmarl_dt's People

Contributors

daisy647lsq avatar danjst avatar dilruk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.