Coder Social home page Coder Social logo

milli's Introduction

MIL Model Agnostic Interpretability

This repo contains the code for "Model Agnostic Interpretability for Multiple Instance Learning".
Paper: https://arxiv.org/abs/2201.11701

main_img

Overview

Executable scripts can be found in the scripts directory. Source code can be found in the src directory. One copy of each trained model can be found in models. Outputs from experiments can be found in out. Results can be found in results.

Data

We use five custom data set implementations: mnist_bags.py, crc_dataset.py, sival_dataset, musk_dataset and tef_dataset; all inherit from mil_dataset.py. Rather than returning a single instance, they return a bag of instances and a single label.

Sources:

Models and training

The models are implemented in src/model. We provide trained versions of these models in the models directory. The training scripts are in scripts/train. These can be used to train single or multiple models. They were tuned using the scripts in scripts/tune .

Interpretability

The interpretability functionality can be found in the src/interpretability directory. The methods are implemented in interpretability/instance_attribution.

Experiments

Our experiment scripts can be found in scripts/experiments. These produce the sample size figures found in the paper.
The output scripts can be found in scripts/out. These produce the interpretability outputs found in the paper.
The milli_weights_plot file produces the plots for the MILLI curve and integral.

Running scripts

All paths are relative to the root of the repo, so scripts must be executed from this location. Required libraries can be found in requirements.txt.

milli's People

Contributors

jaearly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vickycs50

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.