Giter Club home page Giter Club logo

rnn_expl_rules's Introduction

This repository contains code for the paper: Distilling neural networks into skipgram-level decision lists. By Madhumita Sushil, Simon Šuster and Walter Daelemans, 2020.

We do not provide the any of the sepsis evaluation dataset directly because it has been derived from the MIMIC-III dataset. To access these datasets, you would first need access to the MIMIC-III dataset. Please send us a proof of your MIMIC-III access on the email ID [email protected] and we would provide you with our version of the sepsis datasets. The corresponding scripts can be found under src/datasets/scripts

Please use main.py under src as the starting point to obtain explanation rules for the datasets. To obtain explanation rules for sepsis estimation or to generate the synthetic sepsis dataset, prior access to the MIMIC-III dataset is required. Parameters for different datasets are present under corresponding classes in this file. For example, to obtain explanations for a supported dataset, run a command like:

export PYTHONPATH=<parent_directory_path>/rnn_expl_rules

Substitute <parent_directory_path> with the path to this repository.

python3 src/main.py --dataset=sepsis_mimic --get_explanations

Currently supported datasets include sst2, sepsis-mimic, sepsis-mimic-discharge. You can add your own datasets by following the example of sst2 under main.py. The dataset class defines all the relevant parameters for training or loading an LSTM model and then obtaining its explanations. This method can be extended to other classifiers by updating the model requirements under classifiers and explanations for both training models and obtaining gradients of that model outputs respectively.

To evaluate the explanation pipeline on the synthetic data, please refer to synthetic_data_pipeline.py under src.

rnn_expl_rules's People

Contributors

madhumitasushil avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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