Skip to content

Commit 0530464

Browse files
authored
Add outline to docs (#42)
* Add manual outline * Fix to build stable docs
1 parent 2fbc117 commit 0530464

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- master
9+
tags: '*'
910
jobs:
1011
test:
1112
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}

docs/literate/example.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ x, y = MNIST.testdata(Float32, index)
3535

3636
MNIST.convert2image(x)
3737

38-
# By convention in Flux.jl, this input needs to be resized to to WHCN format by adding a color channel and batch dimensions.
38+
# By convention in Flux.jl, this input needs to be resized to WHCN format by adding a color channel and batch dimensions.
3939
input = reshape(x, 28, 28, 1, :);
4040

4141
#md # !!! warning "Input format"

docs/src/api.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# API Reference
2-
1+
# Basics
32
All methods in ExplainabilityMethods.jl work by calling `analyze` on an input and an analyzer:
43
```@docs
54
analyze
65
heatmap
76
```
87

9-
## Analyzers
8+
# Analyzers
109
```@docs
1110
LRP
1211
Gradient

docs/src/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,18 @@ To install this package and its dependencies, open the Julia REPL and run
1111
```julia-repl
1212
julia> ]add ExplainabilityMethods
1313
```
14+
15+
## Manual
16+
```@contents
17+
Pages = [
18+
"generated/example.md",
19+
"generated/advanced_lrp.md",
20+
]
21+
Depth = 2
22+
```
23+
24+
## API reference
25+
```@contents
26+
Pages = ["api.md",]
27+
Depth = 2
28+
```

src/heatmap.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ const HEATMAPPING_PRESETS = Dict{Symbol,Tuple{ColorScheme,Symbol,Symbol}}(
1010
"""
1111
heatmap(expl::Explanation; kwargs...)
1212
heatmap(attr::AbstractArray; kwargs...)
13+
1314
heatmap(input, analyzer::AbstractXAIMethod)
1415
heatmap(input, analyzer::AbstractXAIMethod, neuron_selection::Int)
1516
1617
Visualize explanation.
17-
Assumes the Flux's WHCN convention (width, height, color channels, batch size).
18+
Assumes Flux's WHCN convention (width, height, color channels, batch size).
1819
1920
## Keyword arguments
2021
- `cs::ColorScheme`: ColorScheme that is applied.

0 commit comments

Comments
 (0)