Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
XAIBase = "9b48221d-a747-4c1b-9860-46a1d8ba24a7"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
ADTypes = "1"
Expand All @@ -21,5 +20,4 @@ Random = "<0.0.1, 1"
Reexport = "1"
Statistics = "<0.0.1, 1"
XAIBase = "4"
Zygote = "0.6"
julia = "1.10"
1 change: 1 addition & 0 deletions benchmark/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ExplainableAI = "4f1bc3e1-d60d-4ed0-9367-9bdff9846d3b"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
PkgBenchmark = "32113eaa-f34f-5b0d-bd6c-c81e245fc73d"
PkgJogger = "10150987-6cc1-4b76-abee-b1c1cbd91c01"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
BenchmarkTools = "1"
Expand Down
1 change: 1 addition & 0 deletions benchmark/bench_jogger.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using BenchmarkTools
using Zygote
using Flux
using ExplainableAI

Expand Down
3 changes: 2 additions & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ImageShow = "4e3cecfd-b093-5904-9786-8bbb286a6a31"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
VisionHeatmaps = "27106da1-f8bc-4ca8-8c66-9b8289f1e035"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
VisionHeatmaps = "1.4"
VisionHeatmaps = "1.4"
1 change: 1 addition & 0 deletions docs/src/literate/augmentations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# and start out by loading the same pre-trained LeNet5 model and MNIST input data:
using ExplainableAI
using VisionHeatmaps
using Zygote
using Flux

using BSON # hide
Expand Down
8 changes: 5 additions & 3 deletions docs/src/literate/example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

# For this first example, we already have loaded a pre-trained LeNet5 model
# to look at explanations on the MNIST dataset.
using ExplainableAI
using Flux

using BSON # hide
Expand Down Expand Up @@ -41,8 +40,11 @@ input = reshape(x, 28, 28, 1, :);
#md # (width, height, channels, batch), which is Flux.jl's convention.

# ## Explanations
# We can now select an analyzer of our choice and call [`analyze`](@ref)
# to get an [`Explanation`](@ref):
# We can now select an analyzer of our choice and call [`analyze`](@ref) to get an [`Explanation`](@ref).
# Note that for gradient-based optimizers, a backend for automatic differentiation must be loaded, by default [Zygote.jl](https://github.com/FluxML/Zygote.jl):
using ExplainableAI
using Zygote

analyzer = InputTimesGradient(model)
expl = analyze(input, analyzer);

Expand Down
1 change: 1 addition & 0 deletions docs/src/literate/heatmapping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# We start out by loading the same pre-trained LeNet5 model and MNIST input data:
using ExplainableAI
using VisionHeatmaps
using Zygote
using Flux

using BSON # hide
Expand Down
1 change: 0 additions & 1 deletion src/ExplainableAI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ using Random: AbstractRNG, GLOBAL_RNG
# Automatic differentiation
using ADTypes: AbstractADType, AutoZygote
using DifferentiationInterface: value_and_pullback
using Zygote
const DEFAULT_AD_BACKEND = AutoZygote()

include("bibliography.jl")
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ ReferenceTests = "324d217c-45ce-50fc-942e-d289b448e8cf"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
XAIBase = "9b48221d-a747-4c1b-9860-46a1d8ba24a7"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
1 change: 1 addition & 0 deletions test/test_batches.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ExplainableAI
using Zygote
using Test

using Flux
Expand Down
1 change: 1 addition & 0 deletions test/test_cnn.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ExplainableAI
using Zygote
using Test
using ReferenceTests

Expand Down
Loading