https://github.com/ModelOriented/iBreakDown
Break Down with interactions for local explanations (SHAP, BreakDown, iBreakDown)
https://github.com/ModelOriented/iBreakDown
breakdown iml interpretability shapley xai
Last synced: about 1 month ago
JSON representation
Break Down with interactions for local explanations (SHAP, BreakDown, iBreakDown)
- Host: GitHub
- URL: https://github.com/ModelOriented/iBreakDown
- Owner: ModelOriented
- License: gpl-3.0
- Created: 2018-10-17T17:04:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-30T22:28:10.000Z (over 1 year ago)
- Last Synced: 2024-09-30T20:38:39.517Z (7 months ago)
- Topics: breakdown, iml, interpretability, shapley, xai
- Language: R
- Homepage: https://ModelOriented.github.io/iBreakDown/
- Size: 102 MB
- Stars: 79
- Watchers: 10
- Forks: 15
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Model Agnostic Local Attributions
[](https://github.com/ModelOriented/iBreakDown/actions?query=workflow%3AR-CMD-check)
[](https://codecov.io/github/ModelOriented/iBreakDown?branch=master)
[](https://cran.r-project.org/package=iBreakDown)
[](http://cranlogs.r-pkg.org/badges/grand-total/iBreakDown)## Overview
The `iBreakDown` package is a model agnostic tool for explanation of predictions from black boxes ML models.
Break Down Table shows contributions of every variable to a final prediction.
Break Down Plot presents variable contributions in a concise graphical way.
SHAP (Shapley Additive Attributions) values are calculated as average from random Break Down profiles.
This package works for binary classifiers as well as regression models.`iBreakDown` is a successor of the [breakDown](https://github.com/pbiecek/breakDown) package. It is faster (complexity `O(p)` instead of `O(p^2)`). It supports variable interactions and interactive explanations with D3.js visualizations. It is imported and used to compute model explanations in multiple packages e.g. [`DALEX`](https://github.com/ModelOriented/DALEX), [`modelStudio`](https://github.com/ModelOriented/modelStudio), [`arenar`](https://github.com/ModelOriented/ArenaR).
Methodology behind the **iBreakDown** package is described in the [arXiv paper](https://arxiv.org/abs/1903.11420) and [Explanatory Model Analysis](https://ema.drwhy.ai/breakDown.html) book. It is a part of [DrWhy.AI](http://DrWhy.AI) universe.
## Installation
```{r}
# the easiest way to get iBreakDown is to install it from CRAN:
install.packages("iBreakDown")# Or the the development version from GitHub:
# install.packages("devtools")
devtools::install_github("ModelOriented/iBreakDown")
```## Learn more
Find more examples in the EMA book: https://ema.drwhy.ai/.
This version also works with **D3**:
[see an example](https://modeloriented.github.io/iBreakDown/prototypeDemo.html) and [demo](https://modeloriented.github.io/iBreakDown/articles/vignette_iBreakDown_titanic.html#plot-attributions-with-d3).
## Acknowledgments
Work on this package was financially supported by the `NCN Opus grant 2016/21/B/ST6/02176`.