Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ECCCo-jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Altmeyer
ECCCo-jl
Commits
42c125ed
Commit
42c125ed
authored
1 year ago
by
Pat Alt
Browse files
Options
Downloads
Patches
Plain Diff
uh
parent
c02dd172
No related branches found
No related tags found
1 merge request
!76
69 initial run including fmnist lenet and new method
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
experiments/fmnist.jl
+44
-0
44 additions, 0 deletions
experiments/fmnist.jl
experiments/hpc_blue.sh
+1
-1
1 addition, 1 deletion
experiments/hpc_blue.sh
experiments/run_experiments.jl
+5
-0
5 additions, 0 deletions
experiments/run_experiments.jl
with
51 additions
and
1 deletion
README.md
+
1
−
0
View file @
42c125ed
...
...
@@ -48,6 +48,7 @@ We use the following identifiers:
-
`moons`
(
*Moons*
data)
-
`circles`
(
*Circles*
data)
-
`mnist`
(
*MNIST*
data)
-
`fmnist`
(
*Fashion MNIST*
data)
-
`gmsc`
(
*GMSC*
data)
To run experiments for multiple datasets at once simply separate them with a comma
`,`
...
...
This diff is collapsed.
Click to expand it.
experiments/fmnist.jl
0 → 100644
+
44
−
0
View file @
42c125ed
# Training data:
n_obs
=
10000
counterfactual_data
=
load_fashion_mnist
(
n_obs
)
counterfactual_data
.
X
=
ECCCo
.
pre_process
.
(
counterfactual_data
.
X
)
# VAE (trained on full dataset):
using
CounterfactualExplanations
.
Models
:
load_fashion_mnist_vae
vae
=
load_fashion_mnist_vae
()
counterfactual_data
.
generative_model
=
vae
# Test data:
test_data
=
load_fashion_mnist_test
()
# Additional models:
add_models
=
Dict
(
"LeNet-5"
=>
lenet5
,
)
# Default builder:
n_hidden
=
128
activation
=
Flux
.
swish
builder
=
MLJFlux
.
@builder
Flux
.
Chain
(
Dense
(
n_in
,
n_hidden
,
activation
),
Dense
(
n_hidden
,
n_out
),
)
# Run:
run_experiment
(
counterfactual_data
,
test_data
;
dataname
=
"Fashion-MNIST"
,
builder
=
builder
,
𝒟
x
=
Uniform
(
-
1.0
,
1.0
),
α
=
[
1.0
,
1.0
,
1e-2
],
sampling_batch_size
=
10
,
sampling_steps
=
50
,
use_ensembling
=
true
,
n_individuals
=
5
,
nsamples
=
10
,
nmin
=
10
,
use_variants
=
false
,
use_class_loss
=
true
,
additional_models
=
add_models
,
epochs
=
10
,
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
experiments/hpc_blue.sh
+
1
−
1
View file @
42c125ed
...
...
@@ -11,4 +11,4 @@
module load 2023r1 openmpi julia
srun julia
--project
=
experiments experiments/run_experiments.jl
--
data
=
linearly_separable threaded
srun julia
--project
=
experiments experiments/run_experiments.jl
--
data
=
linearly_separable threaded
>
experiments/hpc.log
This diff is collapsed.
Click to expand it.
experiments/run_experiments.jl
+
5
−
0
View file @
42c125ed
...
...
@@ -38,6 +38,11 @@ if "mnist" in datanames
include
(
"mnist.jl"
)
end
if
"fmnist"
in
datanames
@info
"Running Fashion-MNIST experiment."
include
(
"fmnist.jl"
)
end
if
USE_MPI
MPI
.
Finalize
()
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment