Skip to main content

Explain Why (XWhy) with Statistical Model-agnostic Interpretability with Local Explanations (SMILE)

Project description

License: MIT Standard - \Python Style Guide

X-Why

XWhy: eXplain Why with SMILE -- Statistical Model-agnostic Interpretability with Local Explanations

XWhy, SMILE, Explainability, Interpretability, XAI, machine learning explainability, responsible ai

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xwhy-0.0.2.tar.gz (58.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xwhy-0.0.2-py3-none-any.whl (92.5 kB view details)

Uploaded Python 3

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

Hashes for xwhy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cdc7ee681f2aa2a6c8023ec7afd8059f848f0ce3e0c91c1ac5f57a96e833dac4
MD5 4b2bf8bbd04e6f3a6ed6d7e6a1bb6e62
BLAKE2b-256 7d883cc4dc7d41ad7113816a67b542a021aa2afd4942903be15406e4ae84819a

See more details on using hashes here.

Provenance

The following attestation bundles were made for xwhy-0.0.2.tar.gz:

Publisher: publish.yml on Dependable-Intelligent-Systems-Lab/xwhy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for xwhy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a66405c1893eb2114a4b0fde48a89dff6000d544ae11cfb632cc98ed485399e9
MD5 faf7489104ab47cc2304e7cc27b43875
BLAKE2b-256 1e83138955e1b5e0af665740acbeb1e316bdd61e84f9c5d2fc373d8c98157ac8

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page