Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insights module and SHAPInsight #391

Merged
merged 102 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from 99 commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
0c8e945
Optional import of shap package.
Alex6022 Sep 29, 2024
cbe2e82
1st implementation of SHAP utilities in experimental space and with p…
Alex6022 Sep 29, 2024
2597fd4
Implementation option to perform SHAP either in computational or expe…
Alex6022 Oct 1, 2024
bc1203e
SHAP package implementation in diagnostics utility, complete tests an…
Alex6022 Oct 3, 2024
b348b46
Tests for explainer utilities and generalization for all explainers i…
Alex6022 Oct 3, 2024
ae20322
Implemented plotting with non-shap attributions.
Alex6022 Oct 3, 2024
de9d1e9
Refactored diagnostics test and optimized handling of maple explainers.
Alex6022 Oct 4, 2024
e183957
Shortened plotting method names.
Alex6022 Oct 4, 2024
85fb9ba
Merge branch 'emdgroup:main' into feature/shap-utils
Alex6022 Oct 4, 2024
c389ac1
Cleanup for PR
Alex6022 Oct 4, 2024
55e723c
Renamed diangostics package, enabled optional shap import
Alex6022 Oct 23, 2024
1922467
Merge branch 'emdgroup:main' into feature/shap-utils
Alex6022 Oct 23, 2024
ee57008
Refactoring of test_diagnostics.py
Alex6022 Oct 27, 2024
11b61d1
Merge branch 'emdgroup:main' into feature/shap-utils
Alex6022 Oct 28, 2024
08a4c1e
Merge branch 'feature/shap-utils' of https://github.com/Alex6022/bayb…
Alex6022 Oct 28, 2024
50846f7
Merge branch 'feature/shap-utils' of https://github.com/Alex6022/bayb…
Alex6022 Oct 28, 2024
103a5f7
Fixed changelog merging error
Alex6022 Oct 28, 2024
ffda991
Update pyproject.toml
Scienfitz Nov 1, 2024
eaa5c38
Rework import flag
Scienfitz Nov 1, 2024
4ca9ffd
Update mypy.ini
Scienfitz Nov 1, 2024
9fddbdd
Rework tests
Scienfitz Nov 1, 2024
34e44bc
Generalized explanation for all shap explainer types, refactoring of …
Alex6022 Nov 18, 2024
9c94ccd
Merge branch 'feature/shap-utils' of https://github.com/Alex6022/bayb…
Alex6022 Nov 18, 2024
7823e87
Reworked tests from feedback, Cleanup for Review
Alex6022 Nov 19, 2024
0c2deb6
Further cleanup
Alex6022 Nov 20, 2024
436c08f
Renaming of "diagnostics" package into "insights", Addition of Insigh…
Alex6022 Dec 9, 2024
3fef7b3
Moved explainer maps from testing of shap functionality to shap, allo…
Alex6022 Dec 10, 2024
b50cd24
Merge branch 'main' of https://github.com/emdgroup/baybe into feature…
Alex6022 Dec 10, 2024
949629f
Cleanup of CONTRIBUTORS.md
Alex6022 Dec 10, 2024
36cb30c
Minor reformatting
Scienfitz Dec 27, 2024
67fdf8d
Package housekeeping
Scienfitz Dec 27, 2024
63da2b7
Merge branch 'main' into feature/shap-utils
Scienfitz Dec 27, 2024
69cecd8
Rework classes
Scienfitz Jan 2, 2025
a6eef09
Update tests
Scienfitz Jan 2, 2025
b93a376
Enhance error message
Scienfitz Jan 3, 2025
271645f
Add special handling for Lime
Scienfitz Jan 3, 2025
5997095
Rename bg_data to background_data
AdrianSosic Jan 6, 2025
ec850ba
Add missing validators
AdrianSosic Jan 6, 2025
ae33f55
Fix type annotations
AdrianSosic Jan 6, 2025
c1d69a6
Replace unnecessary post init call
AdrianSosic Jan 6, 2025
e58c04a
Remove unnecessary guard clause
AdrianSosic Jan 6, 2025
f5530bc
Turn method guard clause into proper attribute validator
AdrianSosic Jan 6, 2025
313f394
Improve model function definition
AdrianSosic Jan 6, 2025
e3bb895
Refactor plot methods to return plt.Axes if plots not shown directly.…
Alex6022 Jan 7, 2025
ede033f
Merge branch 'feature/shap-utils' of https://github.com/Alex6022/bayb…
Alex6022 Jan 7, 2025
ff85048
Drop Insights base class
AdrianSosic Jan 7, 2025
dd83e99
Turn explanation property into explain method
AdrianSosic Jan 7, 2025
740a4a1
Pass data to be explained as method argument
AdrianSosic Jan 7, 2025
09ee6ac
Extract explainer factory function
AdrianSosic Jan 7, 2025
c8940c0
Add from_surrogate constructor
AdrianSosic Jan 7, 2025
86c99d3
Refactor class attributes
AdrianSosic Jan 7, 2025
52db71b
Drop duplicate input validation
AdrianSosic Jan 7, 2025
b03d3bf
Refactor plotting
AdrianSosic Jan 8, 2025
d4aeaf4
Define default explainer class
AdrianSosic Jan 8, 2025
331746d
Make data to be explained optional
AdrianSosic Jan 8, 2025
2dc0e94
Drop converter utility
AdrianSosic Jan 8, 2025
31d95f4
Refactor explainer sets
AdrianSosic Jan 9, 2025
84b5f18
Add column permutation test
AdrianSosic Jan 9, 2025
151207b
Make test pass by permuting columns
AdrianSosic Jan 9, 2025
8750a0f
Rework docstrings
AdrianSosic Jan 9, 2025
b748a57
Avoid unnecessary data copy
AdrianSosic Jan 9, 2025
6e81c97
Fix optional dependency handling
AdrianSosic Jan 9, 2025
4ab5898
Use shap's optional dependency group
AdrianSosic Jan 9, 2025
c819d97
Update lockfile
AdrianSosic Jan 9, 2025
3296933
Update README.md
AdrianSosic Jan 9, 2025
9650397
Refactor insights/__init__.py
AdrianSosic Jan 9, 2025
1d38075
Update README.md
AdrianSosic Jan 9, 2025
bec5fc5
Refactor insights/__init__.py
AdrianSosic Jan 9, 2025
2f5c96e
Add missing sphinx-paramlinks doc dependency
AdrianSosic Jan 9, 2025
b65731b
Update lockfile
AdrianSosic Jan 9, 2025
118de87
Fix BayBE spelling
AdrianSosic Jan 9, 2025
a1b058c
fixup! Rework docstrings
AdrianSosic Jan 10, 2025
11e01f4
Fix mypy issues
AdrianSosic Jan 10, 2025
905e718
Merge branch 'feature/shap-utils' of https://github.com/Alex6022/bayb…
Alex6022 Jan 12, 2025
a9a0dd1
Fixed permutation of explanation object. Reintroduced ValueError when…
Alex6022 Jan 12, 2025
c6421c5
Simplify set union
AdrianSosic Jan 13, 2025
a447c42
Rename df method argument to data
AdrianSosic Jan 13, 2025
b44f47f
Removed double docstring
Alex6022 Jan 13, 2025
03c95f7
Test cleanup
Alex6022 Jan 13, 2025
e075b9e
Improved comments and docstring
Alex6022 Jan 13, 2025
bf9cf2b
Filter data to measurement parameters only when initializing from rec…
Alex6022 Jan 13, 2025
f89f9ef
Validate that explainer is of accepted type
AdrianSosic Jan 14, 2025
8282b9a
Avoid test collection import errors due to optional dependencies
AdrianSosic Jan 14, 2025
856d4fd
Drop try-except branch for unsupported explainers types
AdrianSosic Jan 14, 2025
647ea72
Refactor explainer incompatibility handling using type validation
AdrianSosic Jan 14, 2025
5926496
Move content of temporary test file by overriding fixtures locally
AdrianSosic Jan 14, 2025
432942f
Fix type check
AdrianSosic Jan 14, 2025
06fac92
Replace xfail with skip
AdrianSosic Jan 14, 2025
6010004
Refine permutation workaround
AdrianSosic Jan 14, 2025
56d2b07
Update lockfile
AdrianSosic Jan 14, 2025
cb86db4
Fix sphinx references
AdrianSosic Jan 14, 2025
cc41592
Improve docstrings
AdrianSosic Jan 14, 2025
ba7202d
Reintroduce recommender validation guard clause
AdrianSosic Jan 14, 2025
1077904
Make use_comp_rep flag keyword-only
AdrianSosic Jan 14, 2025
6a5a4d9
Adjust batteries included text in README
AdrianSosic Jan 14, 2025
0f8c6f3
Move import statement to avoid test fail
AdrianSosic Jan 14, 2025
4b8842d
Rephrase bullet point
Scienfitz Jan 20, 2025
b0879c2
Enable force plot
Scienfitz Jan 20, 2025
2a8623b
Fix kwargs type hints
Scienfitz Jan 20, 2025
8a27738
Apply suggestions from code review
Scienfitz Jan 20, 2025
0baf9b7
Expand tests
Scienfitz Jan 20, 2025
8797dab
Use context for expected failures
Scienfitz Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 58 additions & 20 deletions .lockfiles/py310-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ anyio==4.4.0
# via
# httpx
# jupyter-server
appnope==0.1.4 ; platform_system == 'Darwin'
appnope==0.1.4 ; sys_platform == 'darwin'
# via ipykernel
argon2-cffi==23.1.0
# via jupyter-server
Expand Down Expand Up @@ -84,7 +84,9 @@ click==8.1.7
# pydoclint
# streamlit
cloudpickle==3.0.0
# via dask
# via
# dask
# shap
colorama==0.4.6
# via
# click
Expand Down Expand Up @@ -230,6 +232,8 @@ idna==3.7
# httpx
# jsonschema
# requests
imageio==2.36.1
# via scikit-image
imagesize==1.4.1
# via sphinx
importlib-metadata==7.1.0
Expand All @@ -238,7 +242,7 @@ importlib-metadata==7.1.0
# opentelemetry-api
iniconfig==2.0.0
# via pytest
intel-openmp==2021.4.0 ; platform_system == 'Windows'
intel-openmp==2021.4.0 ; sys_platform == 'win32'
# via mkl
interface-meta==1.3.0
# via formulaic
Expand Down Expand Up @@ -344,10 +348,14 @@ kiwisolver==1.4.5
# via matplotlib
latexcodec==3.0.0
# via pybtex
lazy-loader==0.4
# via scikit-image
license-expression==30.3.0
# via cyclonedx-python-lib
lifelines==0.29.0
# via ngboost
lime==0.2.0.1
# via shap
linear-operator==0.5.2
# via
# botorch
Expand All @@ -370,6 +378,7 @@ matplotlib==3.9.1
# via
# baybe (pyproject.toml)
# lifelines
# lime
# seaborn
# types-seaborn
matplotlib-inline==0.1.7
Expand All @@ -386,7 +395,7 @@ mdurl==0.1.2
# via markdown-it-py
mistune==3.0.2
# via nbconvert
mkl==2021.4.0 ; platform_system == 'Windows'
mkl==2021.4.0 ; sys_platform == 'win32'
# via torch
mmh3==5.0.1
# via e3fp
Expand Down Expand Up @@ -424,6 +433,7 @@ nest-asyncio==1.6.0
networkx==3.3
# via
# mordredcommunity
# scikit-image
# torch
ngboost==0.5.1
# via baybe (pyproject.toml)
Expand All @@ -436,7 +446,9 @@ notebook-shim==0.2.4
# jupyterlab
# notebook
numba==0.60.0
# via scikit-fingerprints
# via
# scikit-fingerprints
# shap
numpy==1.26.4
# via
# baybe (pyproject.toml)
Expand All @@ -449,7 +461,9 @@ numpy==1.26.4
# e3fp
# formulaic
# h5py
# imageio
# lifelines
# lime
# matplotlib
# mordredcommunity
# ngboost
Expand All @@ -465,44 +479,47 @@ numpy==1.26.4
# pyro-ppl
# rdkit
# scikit-fingerprints
# scikit-image
# scikit-learn
# scikit-learn-extra
# scipy
# seaborn
# shap
# streamlit
# tifffile
# types-seaborn
# xarray
# xyzpy
nvidia-cublas-cu12==12.1.3.1 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-cublas-cu12==12.1.3.1 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via
# nvidia-cudnn-cu12
# nvidia-cusolver-cu12
# torch
nvidia-cuda-cupti-cu12==12.1.105 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-cuda-cupti-cu12==12.1.105 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
nvidia-cuda-nvrtc-cu12==12.1.105 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-cuda-nvrtc-cu12==12.1.105 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
nvidia-cuda-runtime-cu12==12.1.105 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-cuda-runtime-cu12==12.1.105 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
nvidia-cudnn-cu12==8.9.2.26 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-cudnn-cu12==8.9.2.26 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
nvidia-cufft-cu12==11.0.2.54 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-cufft-cu12==11.0.2.54 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
nvidia-curand-cu12==10.3.2.106 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-curand-cu12==10.3.2.106 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
nvidia-cusolver-cu12==11.4.5.107 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-cusolver-cu12==11.4.5.107 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
nvidia-cusparse-cu12==12.1.0.106 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-cusparse-cu12==12.1.0.106 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via
# nvidia-cusolver-cu12
# torch
nvidia-nccl-cu12==2.20.5 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-nccl-cu12==2.20.5 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
nvidia-nvjitlink-cu12==12.5.82 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-nvjitlink-cu12==12.5.82 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via
# nvidia-cusolver-cu12
# nvidia-cusparse-cu12
nvidia-nvtx-cu12==12.1.105 ; platform_machine == 'x86_64' and platform_system == 'Linux'
nvidia-nvtx-cu12==12.1.105 ; platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
onnx==1.16.1
# via
Expand Down Expand Up @@ -566,6 +583,7 @@ packaging==24.1
# jupyterlab
# jupyterlab-server
# jupytext
# lazy-loader
# matplotlib
# mordredcommunity
# nbconvert
Expand All @@ -576,7 +594,9 @@ packaging==24.1
# plotly
# pyproject-api
# pytest
# scikit-image
# setuptools-scm
# shap
# sphinx
# streamlit
# tox
Expand All @@ -592,6 +612,7 @@ pandas==2.2.2
# pandas-flavor
# scikit-fingerprints
# seaborn
# shap
# streamlit
# xarray
# xyzpy
Expand All @@ -612,8 +633,10 @@ pexpect==4.9.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
pillow==10.4.0
# via
# baybe (pyproject.toml)
# imageio
# matplotlib
# rdkit
# scikit-image
# streamlit
pip==24.1.2
# via pip-api
Expand Down Expand Up @@ -784,13 +807,17 @@ s3transfer==0.10.4
# via boto3
scikit-fingerprints==1.9.0
# via baybe (pyproject.toml)
scikit-image==0.25.0
# via lime
scikit-learn==1.5.1
# via
# baybe (pyproject.toml)
# gpytorch
# lime
# ngboost
# scikit-fingerprints
# scikit-learn-extra
# shap
# skl2onnx
scikit-learn-extra==0.3.0
# via baybe (pyproject.toml)
Expand All @@ -805,11 +832,14 @@ scipy==1.14.0
# formulaic
# gpytorch
# lifelines
# lime
# linear-operator
# ngboost
# scikit-fingerprints
# scikit-image
# scikit-learn
# scikit-learn-extra
# shap
sdaxen-python-utilities==0.1.5
# via e3fp
seaborn==0.13.2
Expand All @@ -822,6 +852,8 @@ setuptools==71.1.0
# setuptools-scm
setuptools-scm==8.1.0
# via baybe (pyproject.toml)
shap==0.46.0
# via baybe (pyproject.toml)
six==1.16.0
# via
# asttokens
Expand All @@ -833,6 +865,8 @@ six==1.16.0
# rfc3339-validator
skl2onnx==1.17.0
# via baybe (pyproject.toml)
slicer==0.0.8
# via shap
smart-open==7.0.5
# via e3fp
smmap==5.0.1
Expand Down Expand Up @@ -889,7 +923,7 @@ sympy==1.13.1
# via
# onnxruntime
# torch
tbb==2021.13.0 ; platform_system == 'Windows'
tbb==2021.13.0 ; sys_platform == 'win32'
# via mkl
tenacity==8.5.0
# via
Expand All @@ -902,6 +936,8 @@ terminado==0.18.1
# jupyter-server-terminals
threadpoolctl==3.5.0
# via scikit-learn
tifffile==2024.12.12
# via scikit-image
tinycss2==1.3.0
# via nbconvert
tokenize-rt==6.1.0
Expand Down Expand Up @@ -950,9 +986,11 @@ tox-uv==1.9.1
tqdm==4.66.4
# via
# huggingface-hub
# lime
# ngboost
# pyro-ppl
# scikit-fingerprints
# shap
# xyzpy
traitlets==5.14.3
# via
Expand All @@ -970,7 +1008,7 @@ traitlets==5.14.3
# nbclient
# nbconvert
# nbformat
triton==2.3.1 ; python_full_version < '3.12' and platform_machine == 'x86_64' and platform_system == 'Linux'
triton==2.3.1 ; python_full_version < '3.12' and platform_machine == 'x86_64' and sys_platform == 'linux'
# via torch
typeguard==2.13.3
# via
Expand Down Expand Up @@ -1013,7 +1051,7 @@ virtualenv==20.26.3
# via
# pre-commit
# tox
watchdog==4.0.1 ; platform_system != 'Darwin'
watchdog==4.0.1 ; sys_platform != 'darwin'
# via streamlit
wcwidth==0.2.13
# via prompt-toolkit
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
the corresponding parameter/target column labels

### Added
- Optional `insights` dependency group
- SHAP explanations via the new `SHAPInsight` class
- `allow_missing` and `allow_extra` keyword arguments to `Objective.transform`
- Example for a traditional mixture
- `add_noise_to_perturb_degenerate_rows` utility
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@
`scikit-fingerprints` support
- Fabian Liebig (Merck KGaA, Darmstadt, Germany):\
Benchmarking structure and persistence capabilities for benchmarking results
- Alexander Wieczorek (Swiss Federal Institute for Materials Science and Technology, Dübendorf, Switzerland):\
SHAP explainers for insights
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@
The **Bay**esian **B**ack **E**nd (**BayBE**) is a general-purpose toolbox for Bayesian Design
of Experiments, focusing on additions that enable real-world experimental campaigns.

Besides functionality to perform a typical recommend-measure loop, BayBE's highlights are:
- ✨ Custom parameter encodings: Improve your campaign with domain knowledge
## 🔋 Batteries Included
Besides its core functionality to perform a typical recommend-measure loop, BayBE
offers a range of ✨**built&#8209;in&nbsp;features**✨ crucial for real-world use cases.
The following provides a non-comprehensive overview:

- 🛠️ Custom parameter encodings: Improve your campaign with domain knowledge
- 🧪 Built-in chemical encodings: Improve your campaign with chemical knowledge
- 🎯 Single and multiple targets with min, max and match objectives
- 🔍 Insights: Easily analyze feature importance and model behavior
- 🎭 Hybrid (mixed continuous and discrete) spaces
- 🚀 Transfer learning: Mix data from multiple campaigns and accelerate optimization
- 🎰 Bandit models: Efficiently find the best among many options in noisy environments (e.g. A/B Testing)
Expand Down Expand Up @@ -296,7 +301,8 @@ The available groups are:
- `lint`: Required for linting and formatting.
- `mypy`: Required for static type checking.
- `onnx`: Required for using custom surrogate models in [ONNX format](https://onnx.ai).
- `polars`: Required for optimized search space construction via [Polars](https://docs.pola.rs/)
- `polars`: Required for optimized search space construction via [Polars](https://docs.pola.rs/).
- `insights`: Required for built-in model and campaign analysis (e.g. using [SHAP](https://shap.readthedocs.io/)).
- `simulation`: Enabling the [simulation](https://emdgroup.github.io/baybe/stable/_autosummary/baybe.simulation.html) module.
- `test`: Required for running the tests.
- `benchmarking`: Required for running the benchmarking module.
Expand Down
3 changes: 3 additions & 0 deletions baybe/_optional/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ def exclude_sys_path(path: str, /): # noqa: DOC402, DOC404
# Individual packages
with exclude_sys_path(os.getcwd()):
FLAKE8_INSTALLED = find_spec("flake8") is not None
LIME_INSTALLED = find_spec("lime") is not None
ONNX_INSTALLED = find_spec("onnxruntime") is not None
POLARS_INSTALLED = find_spec("polars") is not None
PRE_COMMIT_INSTALLED = find_spec("pre_commit") is not None
PYDOCLINT_INSTALLED = find_spec("pydoclint") is not None
RUFF_INSTALLED = find_spec("ruff") is not None
SHAP_INSTALLED = find_spec("shap") is not None
SKFP_INSTALLED = find_spec("skfp") is not None # scikit-fingerprints
STREAMLIT_INSTALLED = find_spec("streamlit") is not None
XYZPY_INSTALLED = find_spec("xyzpy") is not None
Expand All @@ -44,6 +46,7 @@ def exclude_sys_path(path: str, /): # noqa: DOC402, DOC404

# Information on whether all required packages for certain functionality are available
CHEM_INSTALLED = SKFP_INSTALLED
INSIGHTS_INSTALLED = SHAP_INSTALLED and LIME_INSTALLED
LINT_INSTALLED = all(
(
FLAKE8_INSTALLED,
Expand Down
16 changes: 16 additions & 0 deletions baybe/_optional/insights.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""Optional import for the insights subpackage."""

from baybe.exceptions import OptionalImportError

try:
import shap
except ModuleNotFoundError as ex:
raise OptionalImportError(
"Explainer functionality is unavailable because 'insights' is not installed."
" Consider installing BayBE with 'insights' dependency, e.g. via "
"`pip install baybe[insights]`."
) from ex

__all__ = [
"shap",
]
Loading
Loading