Skip to content

Commit

Permalink
Add heatmapping preset for CAM methods
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill committed Nov 17, 2023
1 parent 47d4706 commit 5658de9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/explanation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Return type of analyzers when calling [`analyze`](@ref).
* `output`: model output for the given analyzer input
* `output_selection`: index of the output used for the explanation
* `analyzer`: symbol corresponding the used analyzer, e.g. `:Gradient` or `:LRP`
* `heatmap`: symbol indicating a preset heatmapping style, e.g. `:attibution` or `:sensitivity`
* `heatmap`: symbol indicating a preset heatmapping style,
e.g. `:attibution`, `:sensitivity` or `:cam`
* `extras`: optional named tuple that can be used by analyzers
to return additional information.
"""
Expand Down
1 change: 1 addition & 0 deletions src/heatmaps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const DEFAULT_HEATMAP_PRESET = HeatmapConfig(
const HEATMAP_PRESETS = Dict{Symbol,HeatmapConfig}(
:attribution => HeatmapConfig(:seismic, :sum, :centered),
:sensitivity => HeatmapConfig(:grays, :norm, :extrema),
:cam => HeatmapConfig(:jet, :sum, :extrema),
)

# Select HeatmapConfig preset based on heatmapping style in Explanation
Expand Down

0 comments on commit 5658de9

Please sign in to comment.