Explain Why (XWhy) with Statistical Model-agnostic Interpretability with Local Explanations (SMILE)
Project description
X-Why
XWhy: eXplain Why with SMILE -- Statistical Model-agnostic Interpretability with Local Explanations
Installation
pip install xwhy
Simple Example
import xwhy
import xgboost
# train an XGBoost model
X, y = xwhy.datasets.boston()
model = xgboost.XGBRegressor().fit(X, y)
# explain the model's predictions using xwhy
# (same syntax works for LightGBM, CatBoost, scikit-learn, transformers, Spark, etc.)
explainer = xwhy.Explainer(model)
xwhy_values = explainer(X)
# visualize the first prediction's explanation
xwhy.plots.waterfall(xwhy_values[0])
Citations
It would be appreciated a citation to our paper as follows if you use X-Why for your research:
@article{Aslansefat2021Xwhy,
author = {{Aslansefat}, Koorosh and {Hashemian}, Mojgan and {Martin}, Walker and {Papadopoulos}, Yiannis},
title = "{SMILE: Statistical Model-agnostic Interpretability with Local Explanations}",
journal = {arXiv e-prints},
year = {2021},
url = {https://arxiv.org/abs/...},
eprint = {},
}
Acknowledgment
This project is supported by the Secure and Safe Multi-Robot Systems (SESAME) H2020 Project under Grant Agreement 101017258.
Contribution
If you are interested in contributing to this project, please check the contribution guidelines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xwhy-0.0.2.tar.gz.
File metadata
- Download URL: xwhy-0.0.2.tar.gz
- Upload date:
- Size: 58.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdc7ee681f2aa2a6c8023ec7afd8059f848f0ce3e0c91c1ac5f57a96e833dac4
|
|
| MD5 |
4b2bf8bbd04e6f3a6ed6d7e6a1bb6e62
|
|
| BLAKE2b-256 |
7d883cc4dc7d41ad7113816a67b542a021aa2afd4942903be15406e4ae84819a
|
Provenance
The following attestation bundles were made for xwhy-0.0.2.tar.gz:
Publisher:
publish.yml on Dependable-Intelligent-Systems-Lab/xwhy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xwhy-0.0.2.tar.gz -
Subject digest:
cdc7ee681f2aa2a6c8023ec7afd8059f848f0ce3e0c91c1ac5f57a96e833dac4 - Sigstore transparency entry: 2256549963
- Sigstore integration time:
-
Permalink:
Dependable-Intelligent-Systems-Lab/xwhy@33ccaee81d30c7f1ac610b22ba9386a54937291e -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Dependable-Intelligent-Systems-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@33ccaee81d30c7f1ac610b22ba9386a54937291e -
Trigger Event:
push
-
Statement type:
File details
Details for the file xwhy-0.0.2-py3-none-any.whl.
File metadata
- Download URL: xwhy-0.0.2-py3-none-any.whl
- Upload date:
- Size: 92.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a66405c1893eb2114a4b0fde48a89dff6000d544ae11cfb632cc98ed485399e9
|
|
| MD5 |
faf7489104ab47cc2304e7cc27b43875
|
|
| BLAKE2b-256 |
1e83138955e1b5e0af665740acbeb1e316bdd61e84f9c5d2fc373d8c98157ac8
|
Provenance
The following attestation bundles were made for xwhy-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on Dependable-Intelligent-Systems-Lab/xwhy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xwhy-0.0.2-py3-none-any.whl -
Subject digest:
a66405c1893eb2114a4b0fde48a89dff6000d544ae11cfb632cc98ed485399e9 - Sigstore transparency entry: 2256549968
- Sigstore integration time:
-
Permalink:
Dependable-Intelligent-Systems-Lab/xwhy@33ccaee81d30c7f1ac610b22ba9386a54937291e -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Dependable-Intelligent-Systems-Lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@33ccaee81d30c7f1ac610b22ba9386a54937291e -
Trigger Event:
push
-
Statement type: