Shap

Latest version: v0.47.0

Safety actively analyzes 714815 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 10

0.30.0

- New decision_plot function courtesy of floidgilbert
- Add alpha version of the new model agnostic PartitionExplainer
- ensure data is all on the same device for pytorch in DeepExplainer courtesy of gabrieltseng
- fix lightgbm edge case issue courtesy of imatiach-msft
- create binder setup for shap courtesy of jamesmyatt
- Allow for multiple inputs in the gradient explainer courtesy of gabrieltseng
- New KernelExplainer unit tests courtesy of jorgecarleitao
- Add python 2/3 trove classifiers courtesy of proinsias
- support for pyspark trees courtesy of QuentinAmbard
- many other bug fixes courtesy of Rygu, Kylecrif, trams, imatiach-msft, yunchuankong, invokermain, lupusomniator, satyarta, jotsif, parkerzf, jaller94, gabrieltseng, and others

0.29.3

- Fixes an issue in DeepExplainer caused by a change in TensorFlow 1.14.

0.29.2

Various bug fixes and improvements including:

- adding SHAP values for binary classification to CatBoost courtesy of dvpolyakov
- Integer division fix for plots courtesy of pmeier-tiplu
- Support passing in an Axes object to dependence_plot courtesy of mqk
- Add adaptive average pooling and conv transpose layers courtesy of of gabrieltseng
- fix import errors on a missing matplotlib backend courtesy of hchandola
- fix TreeExplainer GradientBoostingClassifier bug courtesy of prempiyush
- make tqdm play nicer with notebooks courtesy of KOLANICH
- Allow deep_pytorch to use cuda models courtesy of juliusbierk
- Fix sklearn GradientBoostingRegressor bug courtesy of nasir-bhanpuri
- adding sparse support to shap linear explainer courtesy of imatiach-msft

0.29.1

Fixes to support changes in the most recent version of sklearn

0.29.0

A few contribution highlights of this release (in chronological order)
- Better testing courtesy of jorgecarleitao
- Image plot customizations courtesy of verdimrc
- Batch norm support for PyTorch in DeepExplainer courtesy of JiechengZhao
- Leaky ReLU and other conv layer support for pytorch deep explainer courtesy of gabrieltseng
- Fixed keras multi input in gradient explainer and improved random seeds courtesy of moritzaugustin
- Support for catBoost ranker courtesy of doramir
- Added XGBRanker and LGBMRanker to TreeExplainer courtesy of imatiach-msft
- Fix embedding lookup with tf.keras in DeepExplainer courtesy of andriy-nikolov
- Custom dependence_plot colors maps courtesy of rcarneva
- Fix divide by zero issues possible with CatBoost models courtesy of dvpolyakov
- Lots of other bug fixes/improvements!

0.28.5

This release is just to refresh the Windows builds on AppVeyor that didn't complete for 0.28.4

Page 5 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.