GithubHelp home page GithubHelp logo

pszemraj / ml4hc-s22-project01 Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 125.27 MB

An investigation into tabular classification with deep NNs for ETHZ Machine Learning for Healthcare on the MIT-BIH arrythmia dataset .

License: Apache License 2.0

Python 0.06% Jupyter Notebook 80.68% HTML 19.26%
tabular-data tabular-methods arrythmia deep-neural-networks classification mit-bih-arrhythmia mit-bih ptb-dataset keras-tensorflow lightning-flash

ml4hc-s22-project01's Introduction

Machine Learning for Healthcare - Problem 1

Lou Ancillon & Peter Szemraj

about

this repo contains the code for the first problem of the Machine Learning for Healthcare course. The majority of development is done in Google Colab for the GPU compute power, the NOTE: access required Drive folder is here.

This repo primarily aims as a central home for the data processing piece, EDA and analysis, as well as the model training and evaluation.

Results - Preview

MITBIH dataset

Here, we compare accuracy of several different models, trained via standard keras, autoML, and ensemble methods on the MITBIH dataset.

mitbih-accuracy-static-prestheme

  • an interactive version of our model results on MIT-BIH (tooltips, etc.) is available as an app on Netlify

PTBDB dataset

Here, we compare the ROC AUC score of several different models, trained via standard keras, autoML, and ensemble methods on the PTBDB dataset.

ptbdb-ROCAUC-static-prestheme

  • an interactive version of our model results on PTBDB (tooltips, etc.) is available as an app on Netlify

Installation

  • for using the repo locally (EDA, analysis) the primary method to install is clone + pip install.
  • NOTE: training notebooks are meant to be run on Google Colab, and the installation of those packages is handled separately inside the notebooks.

Steps to install for local use

  1. clone the repo git clone https://github.com/pszemraj/ml4hc-s22-project01.git
  2. set working directory to the root of the repo (cd ml4hc-s22-project01)
  3. Install required packages with pip install -r requirements.txt
  4. now can run scripts with python main.py

data

Please make sure you follow the steps in install section to install the required packages first. Data for the project is available in several different ways, and was used in both unaltered as well as cleaned/rearranged ways.

  • modified versions of the original data and reformatted pytorch data are available in the repo by default as Apache feather format files to stay under git LFS limit space.
    • to read such a file, simply use pd.read_feather(file_path)
  • the easiest way to get the data in original formatting is by python download_data.py to download the data both as originally provided and in torch format
  • Outside of python, another way to get the data is from this open-access dropbox link as the CSV files are large. This contains both the original datafiles (as provided by the course instructors) and the processed datafiles (reformatted by the data2torchformat.py script).

ml4hc-s22-project01's People

Contributors

pszemraj avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

louancillon

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.