Giter Club home page Giter Club logo

icml2022's Introduction

Conceptual Counterfactuals

This repository contains code for the ICML 2022 submission: "Meaningfully Debugging Model Mistakes Using Conceptual Counterfactual Explanations"

Metadataset Experiments:

1- To reproduce the results associated with the 20 Metadataset scenarios, please have a look at the evaluate_cce.py script.
2- Additionally, the notebook in metadataset-notebooks/Figure2-Metadataset.ipynb render the Figure 2 in the paper.
3- metadataset-notebooks/Figure3-LowLevel.ipynb generates the results related to the low-level perturbations.

Dermatology Experiment:

Code associated with the dermatology experiments can be found in the dermatology/ folder.

1- Run the dermatology/Learn Dermatology Concepts.ipynb notebook to learn the clinically relevant concepts.
2- Run the dermatology/Fitzpatrick17k-training.ipynb notebook to train models on the Fitzpatrick17k dataset. For more information about the dataset and gaining access, please refer to https://github.com/mattgroh/fitzpatrick17k.
3- Run the dermatology/Fitzpatrick17k-Evaluation.ipynb notebook to generate the quantitative results related to the skin type result reported in the paper.

Cardiology Experiment:

Code associated with the cardiology experiments can be found in the cxr/ folder.

1- Check out the cxr/Learn XR Concepts.ipynb notebook to learn the clinically relevant concepts.
2- Run the cxr/Evaluate CXR.ipynb notebook to generat the quantitative results reported in the paper.
3- To get access to the SHC dataset, please check out https://stanfordmlgroup.github.io/competitions/chexpert/. To obtain the NIH dataset, please see https://nihcc.app.box.com/v/ChestXray-NIHCC.

Concept Bank

In banks/resnet18_bank.pkl, you can find a concept bank we use with ResNet18, which contains the concept vectors and precomputed margin statistics.

icml2022's People

Contributors

conceptualcounterfactuals avatar

Watchers

 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.