Giter Site home page Giter Site logo

ml4ht_data_source's Introduction

ml4ht_data_source

ml4ht_data_source is a library that allows you to streamline the process of modeling multi-modal health data.

It makes it easy to load and model on data from different storage formats with complex QC and date time selection logic. The data can be used in both tensorflow and pytorch.

Library functionalities

The library can... Example use case
Load data from different storage formats Modeling on MRIs stored in hd5 files named by sample id with labels in a pandas data frame
Have clear and easy to use selection of data by sample id Selecting a set of patients with a specific condition
Have clear and easy to use selection of data by date-time Selecting ECGs that have a heart attack at most 10 days prior
Allow flexible data transformations Comparing different augmentation strategies
Allow flexible data filtering Comparing different QC strategies
Make data exploration convenient Comparing distributions of labels after different QC and date selection strategies
Allow a random state to be shared across modalities Selecting a random chunk of an MRI to segment

Setup

ml4ht_data_source uses python 3.6 or higher. Setup can be done using venv.

python3.8 -m venv env
source env/bin/activate
pip install -r requirements.txt
pre-commit install
pip install .

Tests

ml4ht_data_source is thoroughly tested using pytest.

source env/bin/activate
pip install .
pytest

ml4ht_data_source's People

Contributors

ndiamant avatar lucidtronix avatar

Stargazers

Kai He avatar Tonic avatar  avatar  avatar Tal Shnitzer avatar Mostafa Amer Al-Alusi avatar  avatar Jerry avatar Bingnan Wang avatar Heng Ee (Osbert) Tay avatar  avatar Rex avatar

Watchers

Danielle Pace avatar James Cloos avatar Mahnaz avatar  avatar  avatar  avatar  avatar  avatar

Forkers

buildtonic

ml4ht_data_source's Issues

Easy way to use the output of exploration as date and sample id selector

Once you run explore_data_descriptions, you should be able to use the valid sample ids and dates for the later PipelineSampleGetter easily.

Once you run explore_pipeline_sample_getter you should be able to use the output to define a new PipelineSampleGetter which skips the failed sample ids and dates.

`DataDescription` that can return multiple modalities

Currently if you get multiple modalities from the same source, e.g. multiple columns from the same data frame, you have to have multiple DataDescriptions. It may be simplifying to have a DataDescription extension which can return a dictionary of arrays.

Add examples folder

There should be a folder of examples.
The most important example is define and running a full data exploration pipeline.

multimodal multi-date inference

Currently all-loading-option inference is possible for single modality, single task models. It should be possible for multi-modal models

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.