Repository navigation
v1.5.0 (2026-05-29)
v1.5.0 (2026-05-29)
Highlights of new Features
- adds
ProxySHAPapproximator inshapiq.approximator.proxyfor proxy-model-accelerated interaction estimation - adds
RegressionMSRapproximator inshapiq.approximator.proxyfor proxy-model accelerated value estimation - refactors
shapiq.treeinto submodules:conversion/,linear/,interventional/with speedup through a C++ backend - adds
LinearTreeSHAPinshapiq.tree.linearfor fast first-order Shapley value computation - adds
InterventionalTreeExplainerinshapiq.tree.interventional - adds
KNNExplainer,WeightedKNNExplainerandThresholdNNExplainerfor nearest neighbor models - changes the default for all user-facing
Explainerclasses toindex="SV",max_order=1(Shapley values) — see Breaking Changes below - adds
shapiq.scatter_plotfor SHAP-style scatter (dependence) plots of interaction values, supporting both first-order and higher-order interactions #516
Introducing ProxySHAP #501, Preprint
Adds ProxySHAP as a new approximator that accelerates Shapley interaction estimation by fitting a lightweight proxy tree model (XGBoost by default) on sampled coalitions, computing exact interactions for the proxy via the InterventionalTreeExplainer, and then optionally correcting for the approximation error on the true model.
Adds RegressionMSR as a new approximator that accelerates Shapley value estimation by fitting a lightweight proxy tree model (XGBoost by default) on sampled coalitions, computing exact interactions for the proxy via the InterventionalTreeExplainer, and then optionally correcting for the approximation error on the true model.
An overview of ProxySHAP:
Sample-efficiency of ProxySHAP:
Introducing Explainers for Nearest Neighbor Models
Adds three new explainers, namely KNNExplainer, WeightedKNNExplainer and ThresholdNNExplainer, which efficiently compute explanations for nearest neighbor models from the scikit-learn library.
One application of these explainers is Data Valuation, i.e. the task of evaluating the usefulness of training data points for training models.
Python Version #497
- adds support for Python 3.14 making the package compatible with the latest Python version.
- drops support for Python 3.10 and 3.11. The minimum supported Python version is now 3.12.
- drops support for Intel (x86_64) macOS. No pre-built wheels are shipped for Intel-based Macs because
numbaandllvmlite(transitive dependencies viagalois) no longer publish x86_64 macOS wheels. Apple Silicon (arm64) macOS, Linux, and Windows are unaffected.
Removed Deprecated Features
- removes
path_to_valuesparameter fromshapiq.Game, which was previously deprecated. Useshapiq.Game.load()instead. #496 - removes pickle support from
shapiq.InteractionValues. JSON is now the only supported file format. UseInteractionValues.save()andInteractionValues.load()with JSON files. #496
Breaking Changes
Explainerdefault changed to Shapley values.Explainer,
TabularExplainer,TabPFNExplainer,AgnosticExplainer, andTreeExplainer
now default toindex="SV",max_order=1. Previously they defaulted to
index="k-SII",max_order=2. Users relying on the previous default must
pass these arguments explicitly. NN explainers andProductKernelExplainer
are unaffected — they already defaulted to"SV". Approximators and
computers also retain their existing defaults.
Extending shapiq-games #476
- adds standard SHAP datasets for benchmarking in
shapiq_games.benchmark.local_xai. - adds all TabArena datasets for benchmarking in
shapiq_games.benchmark.local_xai.
Four adjustment strategies are supported:
"none": use proxy interactions directly (fastest, least accurate)"msr"/"svarm"/"kernel": unbiased adjustments via established estimators
This implementation relies on C-extension routines (compute_interactions_sparse) for high-throughput coalition evaluation.
Introducing LinearTreeSHAP #501
Adds LinearTreeSHAP — an efficient implementation of the Linear TreeSHAP algorithm (Yu et al., 2022) for computing first-order Shapley values on tree-based models.
Unlike TreeSHAPIQ, which supports any-order interactions, LinearTreeSHAP is optimized exclusively for Shapley values (index="SV") and achieves higher throughput by using a dedicated C++ extension (linear_tree_shap_iterative).
It is exported from shapiq.tree.LinearTreeSHAP. For further details we refer to the paper: Yu, S., Zheng, S., Chen, H., & Li, J. (2022). Linear TreeSHAP. NeurIPS 2022.
Complete Refactor of the shapiq.tree Module #501
The internal tree infrastructure has been fully reorganized into a clean subpackage layout:
shapiq/tree/
├── base.py — TreeModel and EdgeTree data structures
├── treeshapiq.py — TreeSHAP-IQ: any-order interactions via Chebyshev interpolation
├── explainer.py — TreeExplainer (main user-facing API, unchanged interface)
├── validation.py — validate_tree_model() for sklearn / XGBoost / LightGBM
├── utils.py — helper utilities
├── conversion/ — tree-to-internal-format converters (sklearn, XGBoost, LightGBM)
├── linear/ — LinearTreeSHAP implementation
└── interventional/ — InterventionalTreeExplainer and InterventionalGame
The conversion of the tree methods has been moved to C++ giving at least 2x up to 6x times speeup over shap tree conversion.
Documentation and Examples
- removes all Jupyter notebooks from the library and moves the examples to a Sphinx-Gallery so they are built and tested as part of the documentation. #509
Performance
- speeds up the baseline imputer by removing a Python
forloop from its hot path. #498
Refactoring of spex module
- moves
ProxySPEXfromshapiq.approximator.sparsetoshapiq.approximator.proxy. Imports fromshapiq.approximator(i.e.from shapiq.approximator import ProxySPEX) are unchanged. - removes the
"proxyspex"option fromSparse.decoder_type; it now accepts only"soft"or"hard"(default"soft"). - moves
sparse-transformandgaloisout of the core dependencies. Install withpip install shapiq[sparse]to useSPEX/Sparse. - adds a
sparseextra (sparse-transform,galois) required byshapiq.approximator.sparse. - adds a
proxyextra (xgboost,lightgbm) required byshapiq.approximator.proxy(ProxySHAP,ProxySPEX,RegressionMSR).
Bugfix
- fixes a bug in tree conversion, such that tree models with no splits are still correctly parsed. #370
- fixes
min_orderinTreeExplainerso that it now actually restricts the returnedInteractionValuesto interactions of ordermin_order..max_order(min_order=0continues to include the empty interaction at the baseline value); invalid values now raise a clearValueError. #325 - fixes tree conversion breaking when the
LC_NUMERIClocale is not set to the standard"C"value. #515 - fixes a segfault in the
ProxySHAPC++ extension code. #506 - fixes a Out Of Memory (OOM) when values is an dictionary and n_players is large. #531
All PRs:
- Bug fix for ProxySPEX by @landonbutler in #484
- Clarified how to show feature values in waterfall plots by @martinrohbeck in #478
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #479
- Fix instructions for docs dependencies and building by @Zaphoood in #486
- Exclude type checking blocks from test coverage by @Zaphoood in #490
- Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in #485
- Bump actions/upload-artifact from 6 to 7 by @dependabot[bot] in #492
- Add
tylinter. by @mmschlk in #493 - Docs rework by @mmschlk in #494
- Update ipython requirement from <8.38.0 to <8.39.0 in the pip-all-updates group by @dependabot[bot] in #491
- Removed deprecated behaviour from shapiq. by @mmschlk in #496
- Bump python version by @mmschlk in #497
- removes for loop improving runtime of baseline imputer by @mmschlk in #498
- Rework information by @mmschlk in #499
- Tree refactor by @Advueu963 in #501
- fix-install by @mmschlk in #502
- Bump actions/upload-artifact from 4 to 7 by @dependabot[bot] in #504
- fixing segfault in ProxySHAP C++ Code by @Advueu963 in #506
- Bump actions/download-artifact from 4 to 8 by @dependabot[bot] in #503
- Work on Docs to remove warnings. by @mmschlk in #495
- Bump codecov/codecov-action from 5 to 6 by @dependabot[bot] in #508
- removed all notebooks from the library and moved to sphinx-gallery by @mmschlk in #509
- Bump pypa/gh-action-pypi-publish from 1.13.0 to 1.14.0 by @dependabot[bot] in #510
- Include deletion of auto examples dir in agents file by @Zaphoood in #513
- Remove Outdated/Dead Code by @mmschlk in #514
- Add explainers for nearest neighbor models by @Zaphoood in #487
- fix: Tree conversion breaking when LC_NUMERIC not standard "C". by @Advueu963 in #515
- Refactoring TreeExplainer, Adding InterventionalTreeExplainer and RegressionMSR approximator. by @Advueu963 in #519
- Release v1.5.0 (2026-05-22) by @mmschlk in #523
- changed emails by @mmschlk in #525
- Simplify macOS CI matrix and set consistent deployment target by @mmschlk in #526
- Reorganize v1.5.0 changelog and drop Intel macOS support by @mmschlk in #527
- Update macOS CI to version 14 and adjust deployment target by @mmschlk in #528
- Rework ProxySPEX into proxy module. Rework Spex in spex module. by @Advueu963 in #529
- Make SV default. by @mmschlk in #530
- Add scatter plot visualization for interaction values by @mmschlk in #516
- fix(InteractionValues): skip dense lookup build for sparse-dict input by @42logos in #532
New Contributors
Full Changelog: v1.4.1...v1.5.0