Skip to content

Commit

Permalink
Minor fixes to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill committed Oct 11, 2023
1 parent efef6db commit 1409c4f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ To install this package and its dependencies, open the Julia REPL and run

## Related packages
* [TextHeatmaps.jl](https://github.com/Julia-XAI/TextHeatmaps.jl):
Sibling package for visualization of sentiment analysis and input space attributions of NLP models.
Sibling package for visualization of sentiment analysis and input space attributions of NLP models.
* [ExplainableAI.jl](https://github.com/Julia-XAI/ExplainableAI.jl): VisionHeatmaps.jl was designed as a dependency for visualization of attributions from ExplainableAI.jl.
1 change: 1 addition & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ makedocs(;
canonical="https://julia-xai.github.io/VisionHeatmaps.jl",
edit_link="main",
assets=String[],
size_threshold_ignore=["example.md"],
),
pages=["Home" => "index.md", "Getting started" => "example.md"],
)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ imgs = [load(joinpath(asset_dir, f)) for f in ("img1.png", "img2.png", "img3.png
Once again, we assume that `val_batch` is in WHCN format:

```@example 1
url = joinpath(asset_dir, "heatmap.jld2") # hide
url = joinpath(asset_dir, "heatmaps.jld2") # hide
data_heatmaps = download(url) # hide
val_batch = load(data_heatmaps, "x") # load precomputed array from file
typeof(val_batch)
Expand Down
2 changes: 1 addition & 1 deletion src/heatmap.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const DEFAULT_REDUCE = :sum
const DEFAULT_RANGESCALE = :centered

"""
heatmap(val)
heatmap(x)
Visualize 4D arrays as heatmaps, assuming the WHCN convention for input array dimensions
(width, height, color channels, batch dimension).
Expand Down

0 comments on commit 1409c4f

Please sign in to comment.