Coder Social home page Coder Social logo

adacare's Introduction

AdaCare: Explainable Clinical Health Status Representation Learning via Scale-Adaptive Feature Extraction and Recalibration

The source code for AdaCare: Explainable Clinical Health Status Representation Learning via Scale-Adaptive Feature Extraction and Recalibration

Visualization

Welcome to test the prototype of our visualization tool. The clinical hidden status is built by our latest representation learning model ConCare https://github.com/Accountable-Machine-Intelligence/concare and AdaCare. The internationalised multi-language support will be available soon.

Requirements

  • Install python, pytorch. We use Python 3.7.3, Pytorch 1.1.
  • If you plan to use GPU computation, install CUDA

Data preparation

We do not provide the MIMIC-III data itself. You must acquire the data yourself from https://mimic.physionet.org/. Specifically, download the CSVs. To run decompensation prediction task on MIMIC-III bechmark dataset, you should first build benchmark dataset according to https://github.com/YerevaNN/mimic3-benchmarks/.

After building the decompensation dataset, please save the files in decompensation directory to data/ directory.

Fast way to test AdaCare with MIMIC-III

  1. We provide the trained weights in ./saved_weights/AdaCare. You can obtain the reported performance in our paper by simply load the weights to the model.

  2. You need to run train.py in test mode and input the data directory. For example,

    $ python train.py --test_mode=1 --data_path='./data/'

Training AdaCare

  1. The minimum input you need to train AdaCare is the dataset directory and file name to save model. For example,

    $ python train.py --data_path='./data/' --file_name='trained_model'

  2. You can also specify batch size --batch_size <integer> , learning rate --lr <float> and epochs --epochs <integer>

  3. Additional hyper-parameters can be specified such as the dimension of RNN, dropout rate, etc. Detailed information can be accessed by

    $ python train.py --help

  4. When training is complete, it will output the performance of AdaCare on test dataset.

adacare's People

Contributors

v1xerunt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adacare's Issues

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.