TextHeatmaps.jl
Documentation for TextHeatmaps.jl.
Installation
To install this package and its dependencies, open the Julia REPL and run
]add TextHeatmapsAPI
TextHeatmaps.heatmap — Functionheatmap(values::AbstractArray, words)Create a heatmap of words where the background color of each word is determined by its corresponding value. Arguments values and words (and optionally colors) must have the same size.
Keyword arguments
colorscheme::Union{ColorScheme,Symbol}: color scheme from ColorSchemes.jl. Defaults toColorSchemes.seismic.rangescale::Symbol: selects how the color channel reduced heatmap is normalized before the color scheme is applied. Can be either:extremaor:centered. Defaults to:centeredfor use with the default color schemeseismic.
heatmap(expl::Explanation, text)Visualize Explanation from XAIBase as text heatmap. Text should be a vector containing vectors of strings, one for each input in the batched explanation.
This will use the default heatmapping style for the given type of explanation. Defaults can be overridden via keyword arguments.