@@ -81,11 +81,6 @@ heatmap(expl)
8181# into a single function call:
8282heatmap (input, analyzer)
8383
84- # For a more detailed explanation of the `heatmap` function,
85- # refer to the [heatmapping section](@ref docs-heatmapping).
86-
87- # ## [List of analyzers](@id docs-analyzers-list)
88-
8984# ## Neuron selection
9085# By passing an additional index to our call to [`analyze`](@ref),
9186# we can compute an explanation with respect to a specific output neuron.
@@ -114,5 +109,19 @@ expl = analyze(batch, analyzer);
114109# Calling `heatmap` on `expl` will detect the batch dimension and return a vector of heatmaps.
115110heatmap (expl)
116111
117- # For more information on heatmapping batches,
118- # refer to the [heatmapping documentation](@ref docs-heatmapping-batches).
112+ # # Custom heatmaps
113+
114+ # The function `heatmap` automatically applies common presets for each method.
115+ #
116+ # Since [`InputTimesGradient`](@ref) computes attributions,
117+ # heatmaps are shown in a blue-white-red color scheme.
118+ # Gradient methods however are typically shown in grayscale:
119+ analyzer = Gradient (model)
120+ heatmap (input, analyzer)
121+ # -
122+ analyzer = InputTimesGradient (model)
123+ heatmap (input, analyzer)
124+
125+ # Using [VisionHeatmaps.jl](https://julia-xai.github.io/XAIDocs/VisionHeatmaps/stable/),
126+ # heatmaps can be heavily customized.
127+ # Check out the [heatmapping documentation](https://julia-xai.github.io/XAIDocs/VisionHeatmaps/stable/) for more information.
0 commit comments