Coder Social home page Coder Social logo

hhaeri / clap-interpretable-predictions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nickruggeri/clap-interpretable-predictions

0.0 0.0 0.0 712 KB

Official codebase for the paper "Provable concept learning for interpretable predictions using variational inference".

License: MIT License

Python 100.00%

clap-interpretable-predictions's Introduction

CLAP Interpretable Predictions ๐Ÿ‘๐Ÿป

Official codebase for the paper

[1] Provable concept learning for interpretable predictions using variational inference,
Taeb A., Ruggeri N., Schnuck C., Yang F.
(Arxiv preprint)

We present CLAP, an inherently interpretable prediction model.
Its VAE-based architecture allows the discovery and disentanglement of relevant concepts, encoded in the latent space, which are utilized by a simple, concurrently trained classifier.
The final architecture allows to exploit provably interpretable, predictive and minimal concepts to assist practitioners in making informed predictions.

Code usage

To start training CLAP on a dataset:

  • download the desired dataset and place it in the ./data directory. Alternatively, change the default data directory specified at src.data.utils.DATA_DIR
  • run the terminal command. The datasets available are MPI, Shapes3D, SmallNORB, ChestXRay, PlantVillage [1].

For example, to train CLAP on the MPI dataset, the terminal command is

python main.py --dataset MPI

More options for training, e.g. latent space dimension and regularization parameters, are specified inside main.py.

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.