Skip to content
/ leaf Public
forked from amparore/leaf

A Python framework for the quantitative evaluation of eXplainable AI methods

Notifications You must be signed in to change notification settings

vostres/leaf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is a fork of original LEAF repository. The only adjustments are removing black-box model training and adjusting few data shapes, so that this framework works with our model and dataset.

Framework and implementation were suggested in: Amparore, E., Perotti, A., & Bajardi, P. (2021). To trust or not to trust an explanation: using LEAF to evaluate local linear XAI methods. PeerJ Comput. Sci., 7(6), e479. doi: 10.7717/peerj-cs.479

LEAF

A Python framework for the quantitative evaluation of eXplainable AI methods.

LEAF requires the following Python libraries to work:

numpy, pandas, lime, shap, imblearn, tabulate

The LEAF project directory contains the following files:

  • leaf.py: the main code of LEAF, with the evaluation procedures for the LLE explaners LIME and SHAP
  • LEAF_test.ipynb: a Jupyter notebook with a simple example of how to use LEAF to compute the basic metrics for XAI evaluation
  • heartrisk-dataset.txt: the sample HeartRisk dataset provided by Shivakumar Doddamani, in csv format. See www.kaggle.com/shivakumarcd/heart-risk-problem for reference.

About

A Python framework for the quantitative evaluation of eXplainable AI methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.2%
  • Python 0.8%