Giter Site home page Giter Site logo

saigerutherford / granular-race-disparities_mlhc23 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rmovva/granular-race-disparities_mlhc23

0.0 0.0 0.0 3.58 MB

Code for "Coarse race data conceals disparities in clinical risk score performance," published at MLHC 2023

License: MIT License

Python 64.56% Jupyter Notebook 35.44%

granular-race-disparities_mlhc23's Introduction

granular-race-disparities_MLHC23

Code for "Coarse race data conceals disparities in clinical risk score performance," published at MLHC 2023.
Link to paper: https://arxiv.org/abs/2304.09270

GIF showing performance disparities that are revealed upon looking at granular groups.

How to reproduce our results

  1. First, download MIMIC-IV-ED (this project was run with version 2.2). You'll need the hosp, icu, and ed modules. In preprocessing/paths.py, edit the data path to contain these folders as subdirectories.
  2. Run the extract_main_dataset.ipynb notebook* to generate a preprocessed dataframe for the emergency department prediction tasks that we study in the paper.
  3. Run the collect-and-plot-granular-performance-metrics-ML.ipynb notebook to train logistic regressions on the outcomes, store performance metrics, and plot results (to reproduce Figure 1).
  4. Run the compute-significance-and-compare-amount-of-variation.ipynb notebook to reproduce Table 2 and Figure 2.

*The initial version of the preprocessing code comes from the following reference: Xie, Feng, Jun Zhou, Jin Wee Lee, Mingrui Tan, Siqi Li, Logasan S/O Rajnthern, Marcel Lucas Chee, et al. 2022. “Benchmarking Emergency Department Prediction Models with Machine Learning and Public Electronic Health Records.” Scientific Data 9 (1): 658. https://doi.org/10.1038/s41597-022-01782-9. See here: https://github.com/nliulab/mimic4ed-benchmark.

granular-race-disparities_mlhc23's People

Contributors

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