Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
894fa53
Add tutorial notebook for SHAP analysis on Transformers
lisa-sousa Jul 24, 2026
516bf6f
Enhance SHAP tutorial notebook with model evaluation and inference pi…
lisa-sousa Jul 27, 2026
aaeca4b
Update SHAP tutorial notebook to improve clarity and focus on model-a…
lisa-sousa Jul 27, 2026
bfada40
small adjustments
lisa-sousa Jul 27, 2026
3579ab4
Fix correct shap version, add task code, add questions
lisa-sousa Jul 28, 2026
8ad613a
Add image fpr emotions dataset
lisa-sousa Jul 31, 2026
f190f21
add shap explainer figure
lisa-sousa Jul 31, 2026
0e92c88
update with figures
lisa-sousa Jul 31, 2026
2918f83
adjust figure size
lisa-sousa Jul 31, 2026
074e5ad
Potential fix for pull request finding
lisa-sousa Aug 10, 2026
1260ada
Potential fix for pull request finding
lisa-sousa Aug 10, 2026
5c1f86f
Refactor plot_shap_values function to use output_name parameter inste…
lisa-sousa Aug 10, 2026
83be9b5
Pin shap==0.52.0 in the transformer requirements
ema265 Aug 10, 2026
76711dc
Label the evaluation metric as balanced accuracy in the SHAP text not…
ema265 Aug 11, 2026
c855f6b
Point the weights download at the published v2.1.0 release
ema265 Aug 12, 2026
6ea7b3f
Bump transformers to 5.13.0 and add missing pinned deps (transformer …
ema265 Aug 12, 2026
eb6eb83
Drop the inline shap install now that it is pinned in requirements
ema265 Aug 12, 2026
344582a
Pin Python 3.12 in the CNN and random-forest requirements
ema265 Aug 12, 2026
4fb283d
Merge branch 'main' into shap_for_transformers
lisa-sousa Aug 24, 2026
7e9959b
Merge branch 'shap_for_transformers' of github.com:HelmholtzAI-Consul…
lisa-sousa Aug 24, 2026
a85176b
add images for kernel and tree shap
lisa-sousa Aug 26, 2026
039272a
train models with new numpy version
lisa-sousa Aug 26, 2026
305697d
Delete docs/source/_figures/shap_kernelshap_overview.png.png
lisa-sousa Aug 26, 2026
e856b3f
Delete docs/source/_figures/shap_treeshap_overview.png
lisa-sousa Aug 26, 2026
32e3255
update shap turoials for tabular data with explanations for explainers
lisa-sousa Aug 26, 2026
e7e219f
rerun all cells
lisa-sousa Aug 26, 2026
30ddc3e
render images properly
lisa-sousa Aug 26, 2026
554710e
Move explainer explanations to read the docs
lisa-sousa Aug 26, 2026
b50533d
remove too much bold text
lisa-sousa Aug 26, 2026
8f7f090
small code change
lisa-sousa Aug 26, 2026
88cf71f
update notebook completely to new shap read the docs
lisa-sousa Aug 26, 2026
9dbbb77
adjust notebook to new shap read the docs structure
lisa-sousa Aug 27, 2026
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
Binary file modified models/model_rf_breastcancer.pickle
Binary file not shown.
Binary file modified models/model_rf_breastcancer_sel.pickle
Binary file not shown.
Binary file modified models/model_rf_housing.pickle
Binary file not shown.
Binary file modified models/model_rf_penguins.pickle
Binary file not shown.
Binary file modified models/model_rf_wine.pickle
Binary file not shown.
Binary file modified models/model_rf_wine_sel.pickle
Binary file not shown.
1 change: 1 addition & 0 deletions requirements_xai-for-cnn.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Requires Python 3.12
jupyter==1.1.1
lime==0.2.0.1
matplotlib==3.10.1
Expand Down
1 change: 1 addition & 0 deletions requirements_xai-for-random-forest.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Requires Python 3.12
fgclustering==3.0.0
jupyter==1.1.1
lime==0.2.0.1
Expand Down
11 changes: 8 additions & 3 deletions requirements_xai-for-transformer.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Requires Python 3.12 (shap 0.52.0)
datasets==5.0.1
evaluate==0.4.3
jupyter==1.1.1
matplotlib==3.10.1
opencv-python==4.11.0.86
pandas==3.0.5
requests==2.34.2
sacrebleu==2.5.1
torch==2.6.0
torchvision==0.21.0
transformers[torch]==4.51.3
shap==0.52.0
torch==2.6.0
torchvision==0.21.0
transformers[torch]==5.13.0
646 changes: 540 additions & 106 deletions xai-for-cnn/5-Tutorial_SHAP_Images.ipynb

Large diffs are not rendered by default.

Loading
Loading