Shap

Latest version: v0.45.1

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

Scan your dependencies

Page 1 of 9

0.45.1

This is a patch release with a couple of bug fixes. In particular, fixes a bug relating to loading of XGBoost models with exponential losses.

What's Changed
Added
* Added selu activation for pytorch deep explainer by CloseChoice in https://github.com/shap/shap/pull/3617
* Added "ax" option to heatmap plotting function by sroener in https://github.com/shap/shap/pull/3571
Changed
* Removed unused "display" parameters from dataset functions by LakshmanKishore in https://github.com/shap/shap/pull/3543
Fixed
* Fixed loading of XGBoost models with expeonential lossesby CloseChoice in https://github.com/shap/shap/pull/3616
* Fixed call interface for the deep explainer by CloseChoice in https://github.com/shap/shap/pull/3558
* Fixed use of Falcon language model for text generation by CloseChoice in https://github.com/shap/shap/pull/3592
* Fixed lightgbm compilation (macOS Workflow) by bewygs in https://github.com/shap/shap/pull/3632
* Fixed loading of XGBoost models with exponential losses by CloseChoice in https://github.com/shap/shap/pull/3616

Plus several documentation and maintenance updates by bewygs , CloseChoice , Hugh-OBrien

New Contributors
* sroener made their first contribution in https://github.com/shap/shap/pull/3571
* Hugh-OBrien made their first contribution in https://github.com/shap/shap/pull/3604
* bewygs made their first contribution in https://github.com/shap/shap/pull/3632

**Full Changelog**: https://github.com/shap/shap/compare/v0.45.0...v0.45.1

0.45.0

This is a fairly significant release containing a number of breaking changes.

Thank you to a number of new contributors for their contributions to this release! We are eager to grow the pool of maintainers, so please do get in touch on 3559 if you are interested in being part of the team.

What's Changed

Breaking changes
* Dropped support for 3.8 in https://github.com/shap/shap/pull/3414
* Changed type and shape of returned SHAP values in some cases, to be consistent with model outputs. SHAP values for models with multiple outputs are now np.ndarray rather than list, by CloseChoice in https://github.com/shap/shap/pull/3318
* Removed deprecated `feature_dependence` parameters in TreeExplainer and LinearExplainer by thatlittleboy in https://github.com/shap/shap/pull/3340
* Removed deprecated alias for Coefficient by connortann in https://github.com/shap/shap/pull/3511

Added
* Added support for python 3.12 by connortann in https://github.com/shap/shap/pull/3414
* Added support for GPU build on recent CUDA versions by trivialfis in https://github.com/shap/shap/pull/3462
* 2x import time speedup via lazy importing of pytorch by connortann in https://github.com/shap/shap/pull/3533
* Added support returning the matplotlib figure in bar plots by richarddli in https://github.com/shap/shap/pull/3494
* Added selu activation for tensorflow deep explainer by CloseChoice in https://github.com/shap/shap/pull/3504
* Added support for special characters in catboost models by CloseChoice in https://github.com/shap/shap/pull/3506
* Added ability to control marker size in `beeswarm` plots by MonoHue in https://github.com/shap/shap/pull/3530

Fixed
* Fixed XGBoost model load by trivialfis in https://github.com/shap/shap/pull/3462
* Fixed text masking with certain tokenizers by costrau in https://github.com/shap/shap/pull/3536
* Fixed issue with KernelExplainer when explaining tensorflow models by connortann in https://github.com/shap/shap/pull/3542
* Fixed force_plot contribution threshold for negative contributions by connortann in https://github.com/shap/shap/pull/3547
* Removed overwrite of default warning filter or formatter by connortann in https://github.com/shap/shap/pull/3514

.. plus a large number of documentation, testing and other maintenance updates by CloseChoice , yuanx749 , LakshmanKishore and others.

New Contributors

* richarddli made their first contribution in https://github.com/shap/shap/pull/3494
* yuanx749 made their first contribution in https://github.com/shap/shap/pull/3458
* LakshmanKishore made their first contribution in https://github.com/shap/shap/pull/3393
* trivialfis made their first contribution in https://github.com/shap/shap/pull/3462
* DanGolding made their first contribution in https://github.com/shap/shap/pull/3526
* MonoHue made their first contribution in https://github.com/shap/shap/pull/3530
* costrau made their first contribution in https://github.com/shap/shap/pull/3536

**Full Changelog**: https://github.com/shap/shap/compare/v0.44.1...v0.45.0

0.44.1

<!-- Release notes generated using configuration in .github/release.yml at master -->

Patch release to fix an issue with the display of force plots.

Fixed
* Fixed HTML issue affecting display of force plots by CloseChoice in https://github.com/shap/shap/pull/3464
* Fixed calculation of interactions values for catboost regressors by CloseChoice in https://github.com/shap/shap/pull/3459
* Update XGBoost parsing to use ubjson format, replacing deprecated binary format by CloseChoice in https://github.com/shap/shap/pull/3345
Other
* Further improvements to documentation

**Full Changelog**: https://github.com/shap/shap/compare/v0.44.0...v0.44.1

0.44.0

This release contains a number enhancements and bug fixes.

What's Changed

Added
* Faster and more stable linear solver in KernelShap by lorentzenchr in https://github.com/shap/shap/pull/3271
* Enabled passing of `ax` to `group_difference()` plot by mtlulka in https://github.com/shap/shap/pull/3355
* Added support for Explanation.display_data in bar plot by fountaindive in https://github.com/shap/shap/pull/3386
* Improved build messages when building from source by connortann in https://github.com/shap/shap/pull/3403

Fixed
* Fixed `CatboostClassifier` explanations with feature interactions on Windows by CloseChoice in https://github.com/shap/shap/pull/3325
* Fixed passing of Xgboost model parameters to xgboost.DMatrix by vancromy in https://github.com/shap/shap/pull/3314
* Explicit specification of xgboost>=1.4 constraint by mtlulka in https://github.com/shap/shap/pull/3352
* Fixed conversion of DMatrix to CSR matrix by thatlittleboy in https://github.com/shap/shap/pull/3359
* Removed deprecated `use_line_collection` in `dependence_plot` by CloseChoice in https://github.com/shap/shap/pull/3369
* Fixed bug relating to array reshaping in `scatter` plots by SomeUserName1 in https://github.com/shap/shap/pull/2799

Documentation
* A large number of [example notebooks](https://shap.readthedocs.io/en/latest) fixed and updated by connortann, znacer , thatlittleboy, CloseChoice and stompsjo

New Contributors
* vancromy made their first contribution in https://github.com/shap/shap/pull/3314
* lorentzenchr made their first contribution in https://github.com/shap/shap/pull/3271
* mtlulka made their first contribution in https://github.com/shap/shap/pull/3352
* fountaindive made their first contribution in https://github.com/shap/shap/pull/3386
* SomeUserName1 made their first contribution in https://github.com/shap/shap/pull/2799
* stompsjo made their first contribution in https://github.com/shap/shap/pull/3391

**Full Changelog**: https://github.com/shap/shap/compare/v0.43.0...V0.44.0

0.43.0

What's Changed

This release contains a number of bug fixes and improvements.

Following the [NEP 29 deprecation policy](https://numpy.org/neps/nep-0029-deprecation_policy.html), this release drops support for python 3.7.

Breaking changes

* Removed the deprecated Boston dataset by thatlittleboy in https://github.com/shap/shap/pull/3316
* The shape of `Explanation.base_values` has been standardised between different TreeExplainer models to always be of shape `(N,)` and not `(N,1)`. By thatlittleboy in https://github.com/shap/shap/pull/3121

Added
* Added additivity check to Pytorch DeepExplainer (activated by default) by noxthot in https://github.com/shap/shap/pull/3265
* Added flag to allow the printing of the mean SHAP value in the legend of a multi-output bar plot. By 101AlexMartin in https://github.com/shap/shap/pull/3062
* Added heatmap and violin plot to top-level API by connortann in https://github.com/shap/shap/pull/3157
* Replaced all tqdm imports with tqdm.auto by owenlamont in https://github.com/shap/shap/pull/3199

Fixed
* Fixed segmentation faults on MacOS with lightgbm tests (with newer libomp versions) by thatlittleboy in https://github.com/shap/shap/pull/3093
* Support LightGBM ensemble containing single leaf trees (stump) by thatlittleboy in https://github.com/shap/shap/pull/3094
* Fixed conversion DataFrame to ndarray for Explanation.data by danieleongari in https://github.com/shap/shap/pull/3131
* Fixed waterfall plot on explanations of sklearn tree models by connortann in https://github.com/shap/shap/pull/3138
* Fixed pandas input for gradient explainer by Koen-Git in https://github.com/shap/shap/pull/3153
* Fixed slicing of `feature_names` in Explanation objects with square `.values` by thatlittleboy in https://github.com/shap/shap/pull/3126
* Correct xlim in force_matplotlib in cases where the signs of force are all the same by zaburo-ch in https://github.com/shap/shap/pull/2839
* Fixed ngboost explanations when col_sample < 1 by CloseChoice in https://github.com/shap/shap/pull/3294
* Fixed torch additivity check in PyTorch DeepExplainer by noxthot in https://github.com/shap/shap/pull/3281
* Replaced print statements with warnings in DeepExplainer by znacer in https://github.com/shap/shap/pull/3264
* Replace deprecated `register_backward_hook()` by noxthot in https://github.com/shap/shap/pull/3259
* Fixed deprecated use of xgboost early_stopping_rounds by CloseChoice in https://github.com/shap/shap/pull/3306
* Fixed 3rd party deprecation warnings: numba, xgboost, typing, distutils by connortann in https://github.com/shap/shap/pull/3084
* Updated the Javascript bundle to update deprecated dependencies by connortann in https://github.com/shap/shap/pull/2974

There have also been a large number of improvements to the tutorials and examples, by connortann, znacer, arshiaar, thatlittleboy, dsgibbons, owenlamont and CloseChoice

New Contributors
* 101AlexMartin made their first contribution in https://github.com/shap/shap/pull/3062
* znacer made their first contribution in https://github.com/shap/shap/pull/3112
* danieleongari made their first contribution in https://github.com/shap/shap/pull/3131
* Koen-Git made their first contribution in https://github.com/shap/shap/pull/3153
* pre-commit-ci made their first contribution in https://github.com/shap/shap/pull/3173
* owenlamont made their first contribution in https://github.com/shap/shap/pull/3199
* arshiaar made their first contribution in https://github.com/shap/shap/pull/3201
* dsgibbons made their first contribution in https://github.com/shap/shap/pull/3200
* noxthot made their first contribution in https://github.com/shap/shap/pull/3265
* zaburo-ch made their first contribution in https://github.com/shap/shap/pull/2839
* CloseChoice made their first contribution in https://github.com/shap/shap/pull/3282

**Full Changelog**: https://github.com/shap/shap/compare/v0.42.1...v0.43.0

0.42.1

Patch release to provide wheels for a broader range of architectures.

Added

* Added wheels for linux:aarch64 and macos:arm64 by PrimozGodec in https://github.com/slundberg/shap/pull/3078 and connortann in https://github.com/slundberg/shap/pull/3083.

Fixed

* Fixed circular import issues with shap.benchmark by thatlittleboy in https://github.com/slundberg/shap/pull/3076.
* Fixed TestPyPI releases workflow by connortann in https://github.com/slundberg/shap/pull/3068
* Fix further flaky tests by thatlittleboy in https://github.com/slundberg/shap/pull/3073
* Fix shap.summary_plot to work with matplotlib 3.6.0 by jklaise in https://github.com/slundberg/shap/pull/2697
* Fix benchmark top-level import by thatlittleboy in https://github.com/slundberg/shap/pull/3076
* Fix ipython import warning from top-level shap import by connortann in https://github.com/slundberg/shap/pull/3090

**Full Changelog**: https://github.com/slundberg/shap/compare/v0.42.0...v0.42.1

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.