Code Monkey home page Code Monkey logo

covid-19_severity's Introduction

Code and dataset of A Learning-based Model to Evaluate Hospitalization Priority in COVID-19 Pandemics

Paper

if you find it difficult to deploy/use/reproduce/modify it, feel free to start an issue or contact me: zhuyh19 AT mails.tsinghua.edu.cn.

If you are a hospital worker and want to use the method proposed in this paper, we develop a simple and easy-to-used tool here.

If you want to reprocedure the result or use this code for other purpose, please follow the instructions below.

requirement and environment

  1. python 3
  2. tested on ubuntu 18. it should work well on win and osx.
pip install shap==0.32.1 xgboost==0.90 tensorboardx tensorboard Flask gunicorn matplotlib jupyter seaborn graphviz

file structure

- <Root>
    - dataset.csv: released dataset
    - Reproduction.ipynb: reproduction jupyter notebook
    - paper: folder to save reproduction figures and tables
    - tmp: folder to save reproduction intermediate result
    - tsne_point_cloud.json: since t-SNE is interactive, the frozen parameters are provided individually
    - app.py: web app based on flask to provide perdition service
    - Procfile: web app config
    - deploy: folder to save trained model for web app deployment.
    - figures.zip: generated figures and videos

reproduction

jupyter

  1. start jupyter jupyter notebook --ip=0.0.0.0 --port=8888
  2. open brower and goto:localhost:8888/notebooks/Reproduction.ipynb#
  3. run all
  4. results are shown in the web notebook and saved to ./paper folder at the same time

convert generate png figures to pdf

ls -1 *.png | xargs -n 1 bash -c 'convert "$0" "${0%.*}.pdf"'

start web application

  1. flask run --host=0.0.0.0 --port=8889
  2. open brower and goto:localhost:8889

correction

pdf

citation

if you think this dataset or code helpful, it will be appreciated if you can cite our paper.

@article{Zheng2020ALM,
  title={A Learning-based Model to Evaluate Hospitalization Priority in COVID-19 Pandemics},
  author={Yichao Zheng and Yinheng Zhu and Mengqi Ji and Rongpin Wang and Xinfeng Liu and Mudan Zhang and Choo Hui Qin and Lu Fang and Shao-hua Ma},
  journal={Patterns (New York, N.y.)},
  year={2020}
}

covid-19_severity's People

Contributors

zhuyinheng avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.