@@ -53,14 +53,14 @@ heatmap(input, analyzer, 920) # for heatmap
53
53
```
54
54
Heatmaps for all implemented analyzers are shown in the following table. Red color indicate regions of positive relevance towards the selected class, whereas regions in blue are of negative relevance.
55
55
56
- | ** Analyzer** | ** Heatmap for class "castle"** | ** Heatmap for class "street sign"** |
57
- | :--------------------- | :------------------------------:| :----------------------------------:|
58
- | ` LRP ` composite | ![ ] [ castle-lrp-comp ] | ![ ] [ streetsign-lrp-comp ] |
59
- | ` LRP ` | ![ ] [ castle-lrp ] | ![ ] [ streetsign-lrp ] |
60
- | ` InputTimesGradient ` | ![ ] [ castle-ixg ] | ![ ] [ streetsign-ixg ] |
61
- | ` Gradient ` | ![ ] [ castle-grad ] | ![ ] [ streetsign-grad ] |
62
- | ` SmoothGrad ` | ![ ] [ castle-smoothgrad ] | ![ ] [ streetsign-smoothgrad ] |
63
- | ` IntegratedGradients ` | ![ ] [ castle-intgrad ] | ![ ] [ streetsign-intgrad ] |
56
+ | ** Analyzer** | ** Heatmap for class "castle"** | ** Heatmap for class "street sign"** |
57
+ | :---------------------------------------- | :------------------------------:| :----------------------------------:|
58
+ | ` LRP ` composite using ` EpsilonGammaBox ` | ![ ] [ castle-lrp-comp ] | ![ ] [ streetsign-lrp-comp ] |
59
+ | ` LRP ` | ![ ] [ castle-lrp ] | ![ ] [ streetsign-lrp ] |
60
+ | ` InputTimesGradient ` | ![ ] [ castle-ixg ] | ![ ] [ streetsign-ixg ] |
61
+ | ` Gradient ` | ![ ] [ castle-grad ] | ![ ] [ streetsign-grad ] |
62
+ | ` SmoothGrad ` | ![ ] [ castle-smoothgrad ] | ![ ] [ streetsign-smoothgrad ] |
63
+ | ` IntegratedGradients ` | ![ ] [ castle-intgrad ] | ![ ] [ streetsign-intgrad ] |
64
64
65
65
The code used to generate these heatmaps can be found [ here] [ asset-code ] .
66
66
@@ -78,19 +78,27 @@ Currently, the following analyzers are implemented:
78
78
├── SmoothGrad
79
79
├── IntegratedGradients
80
80
└── LRP
81
- ├── ZeroRule
82
- ├── EpsilonRule
83
- ├── GammaRule
84
- ├── WSquareRule
85
- ├── FlatRule
86
- ├── ZBoxRule
87
- ├── ZPlusRule
88
- ├── AlphaBetaRule
89
- └── PassRule
81
+ ├── Rules
82
+ │ ├── ZeroRule
83
+ │ ├── EpsilonRule
84
+ │ ├── GammaRule
85
+ │ ├── WSquareRule
86
+ │ ├── FlatRule
87
+ │ ├── ZBoxRule
88
+ │ ├── ZPlusRule
89
+ │ ├── AlphaBetaRule
90
+ │ └── PassRule
91
+ └── Composite
92
+ ├── EpsilonGammaBox
93
+ ├── EpsilonPlus
94
+ ├── EpsilonAlpha2Beta1
95
+ ├── EpsilonPlusFlat
96
+ └── EpsilonAlpha2Beta1Flat
97
+
90
98
```
91
99
92
100
One of the design goals of ExplainableAI.jl is extensibility.
93
- Individual LRP rules [ can be composed ] [ docs-composites ] and are easily extended by [ custom rules] [ docs-custom-rules ] .
101
+ Custom [ composites ] [ docs-composites ] are easily defined and the package is easily extended by [ custom rules] [ docs-custom-rules ] .
94
102
95
103
## Roadmap
96
104
In the future, we would like to include:
@@ -106,16 +114,16 @@ Contributions are welcome!
106
114
107
115
[ banner-img ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/banner.png
108
116
109
- [ asset-code ] : https://github.com/adrhill/ExplainableAI.jl/blob/gh-pages/assets/heatmaps/readme_assets .jl
117
+ [ asset-code ] : https://github.com/adrhill/ExplainableAI.jl/blob/gh-pages/assets/heatmaps/generate_assets .jl
110
118
[ castle ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle.jpg
111
119
[ castle-lrp ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle_LRP.png
112
- [ castle-lrp-comp ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle_LRP_composite .png
120
+ [ castle-lrp-comp ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle_LRPEpsilonGammaBox .png
113
121
[ castle-ixg ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle_InputTimesGradient.png
114
122
[ castle-grad ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle_Gradient.png
115
123
[ castle-smoothgrad ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle_SmoothGrad.png
116
124
[ castle-intgrad ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/castle_IntegratedGradients.png
117
125
[ streetsign-lrp ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/streetsign_LRP.png
118
- [ streetsign-lrp-comp ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/streetsign_LRP_composite .png
126
+ [ streetsign-lrp-comp ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/streetsign_LRPEpsilonGammaBox .png
119
127
[ streetsign-ixg ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/streetsign_InputTimesGradient.png
120
128
[ streetsign-grad ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/streetsign_Gradient.png
121
129
[ streetsign-smoothgrad ] : https://raw.githubusercontent.com/adrhill/ExplainableAI.jl/gh-pages/assets/heatmaps/streetsign_SmoothGrad.png
@@ -133,7 +141,7 @@ Contributions are welcome!
133
141
[ codecov-img ] : https://codecov.io/gh/adrhill/ExplainableAI.jl/branch/master/graph/badge.svg
134
142
[ codecov-url ] : https://codecov.io/gh/adrhill/ExplainableAI.jl
135
143
136
- [ docs-composites ] : https://adrhill.github.io/ExplainableAI.jl/dev/generated/advanced_lrp/#Custom-LRP- composites
144
+ [ docs-composites ] : https://adrhill.github.io/ExplainableAI.jl/dev/generated/advanced_lrp/#Custom-composites
137
145
[ docs-custom-rules ] : https://adrhill.github.io/ExplainableAI.jl/dev/generated/advanced_lrp/#Custom-LRP-rules
138
146
139
147
[ doi-img ] : https://zenodo.org/badge/337430397.svg
0 commit comments