8000 GitHub - p16i/drsa-demo at v1.0.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

p16i/drsa-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disentangled Explanations of Neural Network Predictions by Finding Relevant Subspaces (Demo Code)

Unit Test

We provide two Jupyter notebooks, namely

  1. ./notebooks/lrp-nfnet.ipynb demonstrates our LRP implementation for NFNet-F0. It reproduces Fig. D.2 in Supplementary Note D.
  2. ./notebooks/demo.ipynb demonstrates our disentangled explanation framework. More specifically, the notebook shows how to obtain disentanged explanations from PRCA and DRSA for class basketball using activation and LRP context vectors from VGG16-TV at Conv4_3. The demonstration reproduces Fig. 2 in the main paper.

Remark: Make sure that PYTHONPATH includes $(pwd)/cxai when starting a Jupyter instance. Or, start the instance using PYTHONPATH=$(pwd)/cxai jupyter notebook.

Setup

We use Python version 3.8.6. Necessary dependencies can be installed via

pip install 
58E0
-r requirements.txt

Please run the unit test command below to check that necessary functionalities work.

# testing important functions (approximately 3 minutes on CPUs)
make fast-test

# test all functions (approximately 6 minutes on Tesla V100)
make test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published
0