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.1.tar.gz (32.6 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.1-py3-none-any.whl (53.5 kB view details)

Uploaded Python 3

File details

Details for the file xwhy-0.0.1.tar.gz.

File metadata

  • Download URL: xwhy-0.0.1.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xwhy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bdd4ecb97bc2169aa261ff4ca1ed24f082e607582cc12ea0ea37b6f2c358f23d
MD5 e4392fad21f0f7c69a7865e60ff7f7dc
BLAKE2b-256 3623baf9181042ecd5d405d2331b027308fc82bfa8cf63854df9463e771c03c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for xwhy-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: xwhy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 53.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xwhy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22ab9a9eeb20c3d49639b77a5224f85da28ede49c41984b7c9f93d23145786fb
MD5 892b8d1c5852d855dee45fe460cd586d
BLAKE2b-256 132a98df0b36a5491d41e92a45a90b9f9fbc3cee0e6a6f8a0726e7892fa3302c

See more details on using hashes here.

Provenance

The following attestation bundles were made for xwhy-0.0.1-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