Skip to main content

MIMIC Benchmark in PyTorch.

Project description

MIMIC Benchmark in PyTorch

MIMIC Benchmark reimplemented in PyTorch. For examples and documentation checkout: https://torchmimic.readthedocs.io/en/latest/

Installation

To install, run:

pip install torchmimic

Data

This library contains PyTorch datasets that will load your existing MIMIC Benchmark data. To use those datasets, just import the data you want from torchmimic.data:

from torchmimic.data import DecompensationDataset
from torchmimic.data import IHMDataset
from torchmimic.data import LOSDataset
from torchmimic.data import PhenotypingDataset
from torchmimic.data import MultitaskDataset

Models

We've included some of the models used in the benchmark paper for reproduction and comparison with your own methods. Current models include:

  • Standard LSTM

You can access these models from torchmimic.models:

from torchmimic.models import StandardLSTM

Benchmarks

Each of the benchmarks can be found in torchmimic.benchmarks:

from torchmimic.benchmarks import DecompensationBenchmark
from torchmimic.benchmarks import IHMBenchmark
from torchmimic.benchmarks import LOSBenchmark
from torchmimic.benchmarks import PhenotypingBenchmark
from torchmimic.benchmarks import MultitaskBenchmark

At a minimum, the benchmark need a model to be trained. You can create the model from one of our existing ones or you can create your own.

Weights and Biases Support

This library has built-in logging of model configurations and key metrics using the Weights and Biases library.

TODOs

Benchmarks

  • Phenotyping
  • Length of Stay
  • Decompensation
  • In Hospital Mortality
  • Multitask

Models

  • Standard LSTM
  • Standard LSTM + Deep Supervision
  • Logistic Regression
  • Channelwise LSTM
  • Channelwise LSTM + Deep Supervision
  • Multitask LSTM
  • Multitask Channelwise LSTM

Testing

  • Test data for GitHub Workflow

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchmimic-0.0.6.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torchmimic-0.0.6-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

Details for the file torchmimic-0.0.6.tar.gz.

File metadata

  • Download URL: torchmimic-0.0.6.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for torchmimic-0.0.6.tar.gz
Algorithm Hash digest
SHA256 31d2eb0082a80d8c748ef7edcc7405a8ff3a9cfb4363e6840495a6e6625b19e3
MD5 8ef69ee3dacc5f3c990c93b3dc347997
BLAKE2b-256 7bf3df62ed2744495254cb23c60e3a2483d9d62bbf699a876e78007cdc570d3d

See more details on using hashes here.

File details

Details for the file torchmimic-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: torchmimic-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 48.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for torchmimic-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a32cab7aead19e21b55635c3dd804a430f87cfb6a5feba826b6da65ac6f9ba29
MD5 bc6eae2693058283a8e4fa4c2f6eb462
BLAKE2b-256 5fb10ae5c47c6141a2c5e979dfb7bc6ba4f59e1e9fa32b6245ffe3d0f5dc8d6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page