Skip to content
Snippets Groups Projects
Commit ffc4ad3a authored by Pat Alt's avatar Pat Alt
Browse files

mnist benchmark

parent dddf8988
No related branches found
No related tags found
No related merge requests found
artifacts/results/images/mnist_eccco.png

24.2 KiB | W: | H:

artifacts/results/images/mnist_eccco.png

21.5 KiB | W: | H:

artifacts/results/images/mnist_eccco.png
artifacts/results/images/mnist_eccco.png
artifacts/results/images/mnist_eccco.png
artifacts/results/images/mnist_eccco.png
  • 2-up
  • Swipe
  • Onion skin
artifacts/results/images/mnist_eccco_benchmark.png

22.2 KiB | W: | H:

artifacts/results/images/mnist_eccco_benchmark.png

22.5 KiB | W: | H:

artifacts/results/images/mnist_eccco_benchmark.png
artifacts/results/images/mnist_eccco_benchmark.png
artifacts/results/images/mnist_eccco_benchmark.png
artifacts/results/images/mnist_eccco_benchmark.png
  • 2-up
  • Swipe
  • Onion skin
No preview for this file type
No preview for this file type
......@@ -520,7 +520,8 @@ bmk = benchmark(
generators=generator_dict,
measure=measures,
suppress_training=true, dataname="MNIST",
n_individuals=100,
n_individuals=5,
factual=0, target=1,
initialization=:identity,
)
......@@ -533,6 +534,6 @@ Serialization.serialize(joinpath(output_path, "mnist_benchmark.jls"), bmk)
@group_by(dataname, generator, model, variable)
@summarize(mean=mean(value),sd=std(value))
@ungroup
@filter(variable == "distance_from_targets")
@filter(variable == "distance_from_energy")
end
```
\ No newline at end of file
No preview for this file type
......@@ -38,7 +38,7 @@ end
function distance_from_energy(
ce::AbstractCounterfactualExplanation;
n::Int=10, niter=60, from_buffer=true, agg=mean, kwargs...
n::Int=10, niter=100, from_buffer=true, agg=mean, kwargs...
)
conditional_samples = []
ignore_derivatives() do
......@@ -64,7 +64,7 @@ end
function distance_from_targets(
ce::AbstractCounterfactualExplanation;
n::Int=100, agg=mean
n::Int=1000, agg=mean
)
target_idx = ce.data.output_encoder.labels .== ce.target
target_samples = ce.data.X[:,target_idx] |>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment