Skip to content

Machine Learning Interpretability based on the Weight-of-Evidence

Notifications You must be signed in to change notification settings

dmelis/interpretwoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weight-of-Evidence Interpretability

Codebase accompanying the papers:

See the papers for technical details.

Dependencies

  • python (>3.0)
  • numpy
  • scipy
  • pandas
  • scikit-learn
  • matplotlib
  • seaborn
  • attrdict
  • colored
  • tqdm
  • jupyterlab (optional - to run notebooks )
  • pytorch (optional - to use with pytorch models: BETA)

Installation

It's highly recommended that the following steps be done inside a virtual environment (e.g., via virtualenv or anaconda).

Via Conda (recommended)

If you use [ana|mini]conda , you can simply do:

conda env create -f environment.yaml python=3.8
conda activate interpretwoe
conda install . # (optional: to import without needing to add path)

Via pip

pip install -r requirements.txt

Finally, install this package:

pip install .

How to use

For example usage, please see notebooks/WoE_UserStudy_Main.ipynb. That notebook has a self-contained full experimental setup, which we used for our user study.

Overall Code Structure

The main relevant code is in the following scripts in `src/':

  • explainers.py - defines the Explanation, Explainer Classes, etc
  • scoring.py - defines the explanation scoring function for choose class partitions
  • woe.py - defines weight-of-evidence computation methods
  • data.py - data loading functions
  • classifiers.py - classification models
  • woe_utils.py - misc utils used by woe models

About

Machine Learning Interpretability based on the Weight-of-Evidence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published