Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

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.3a0.tar.gz (92.8 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.3a0-py3-none-any.whl (132.6 kB view details)

Uploaded Python 3

File details

Details for the file xwhy-0.0.3a0.tar.gz.

File metadata

  • Download URL: xwhy-0.0.3a0.tar.gz
  • Upload date:
  • Size: 92.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xwhy-0.0.3a0.tar.gz
Algorithm Hash digest
SHA256 41b67653e0a6af45204e48045a71dc760b4f3ba0d8860e4f0613ecf5b8586047
MD5 5b9b61ecb13af27772649bf8c5583864
BLAKE2b-256 1cf4148bf123d58c73e76120a97a916582c469589dd4a3bef0e42637dd7f7829

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: xwhy-0.0.3a0-py3-none-any.whl
  • Upload date:
  • Size: 132.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xwhy-0.0.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 73310341ca76601381884497c558683e8865b1cb554074648c9bd02939c7d67f
MD5 891d1acc0492e9cf5f3fdc7fa2646664
BLAKE2b-256 d1547f933e25f4e39c9ea094d5a9b0835e291bf74419ef6e44a9d6a3f3327a15

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

0.0.3

2 files

This release

0.0.3a0 This release

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page