Skip to content
Snippets Groups Projects
Commit a4364637 authored by pat-alt's avatar pat-alt
Browse files

mnist training with resnet

parent 5db91e75
No related branches found
No related tags found
1 merge request!7669 initial run including fmnist lenet and new method
Showing
with 32 additions and 27 deletions
......@@ -2,11 +2,11 @@
#SBATCH --job-name="California Housing (ECCCo)"
#SBATCH --time=3:00:00
#SBATCH --ntasks=48
#SBATCH --ntasks=1000
#SBATCH --cpus-per-task=1
#SBATCH --partition=compute
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
module load 2023r1 openmpi
......
......@@ -2,11 +2,11 @@
#SBATCH --job-name="Credit Default (ECCCo)"
#SBATCH --time=3:00:00
#SBATCH --ntasks=48
#SBATCH --ntasks=1000
#SBATCH --cpus-per-task=1
#SBATCH --partition=compute
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
module load 2023r1 openmpi
......
......@@ -6,7 +6,7 @@
#SBATCH --cpus-per-task=4
#SBATCH --partition=compute
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
module load 2023r1 openmpi
......
......@@ -2,11 +2,11 @@
#SBATCH --job-name="German Credit (ECCCo)"
#SBATCH --time=3:00:00
#SBATCH --ntasks=48
#SBATCH --ntasks=1000
#SBATCH --cpus-per-task=1
#SBATCH --partition=compute
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
module load 2023r1 openmpi
......
......@@ -2,11 +2,11 @@
#SBATCH --job-name="GMSC (ECCCo)"
#SBATCH --time=3:00:00
#SBATCH --ntasks=48
#SBATCH --ntasks=1000
#SBATCH --cpus-per-task=1
#SBATCH --partition=compute
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
module load 2023r1 openmpi
......
......@@ -2,11 +2,11 @@
#SBATCH --job-name="MNIST (ECCCo)"
#SBATCH --time=24:00:00
#SBATCH --ntasks=48
#SBATCH --ntasks=1000
#SBATCH --cpus-per-task=1
#SBATCH --partition=compute
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
module load 2023r1 openmpi
......
......@@ -2,11 +2,11 @@
#SBATCH --job-name="Synthetic (ECCCo)"
#SBATCH --time=02:00:00
#SBATCH --ntasks=48
#SBATCH --ntasks=1000
#SBATCH --cpus-per-task=1
#SBATCH --partition=compute
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
module load 2023r1 openmpi
......
......@@ -2,11 +2,11 @@
#SBATCH --job-name="Tabular (ECCCo)"
#SBATCH --time=05:00:00
#SBATCH --ntasks=48
#SBATCH --ntasks=1000
#SBATCH --cpus-per-task=1
#SBATCH --partition=compute
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
module load 2023r1 openmpi
......
......@@ -7,7 +7,7 @@
#SBATCH --cpus-per-task=1
#SBATCH --partition=gpu
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
srun julia --project=experiments experiments/run_experiments.jl -- data=california_housing output_path=results only_models > experiments/train_california_housing.log
\ No newline at end of file
......@@ -7,7 +7,7 @@
#SBATCH --cpus-per-task=1
#SBATCH --partition=gpu
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
srun julia --project=experiments experiments/run_experiments.jl -- data=credit_default output_path=results only_models > experiments/train_credit_default.log
\ No newline at end of file
......@@ -7,7 +7,7 @@
#SBATCH --cpus-per-task=1
#SBATCH --partition=gpu
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
srun julia --project=experiments experiments/run_experiments.jl -- data=german_credit output_path=results only_models > experiments/train_german_credit.log
\ No newline at end of file
#!/bin/bash
#SBATCH --job-name="Train MNIST (ECCCo)"
#SBATCH --time=01:00:00
#SBATCH --time=03:00:00
#SBATCH --ntasks=1
#SBATCH --gpus-per-task=1
#SBATCH --cpus-per-task=1
#SBATCH --partition=gpu
#SBATCH --mem-per-cpu=4GB
#SBATCH --account=innovation
#SBATCH --mem-per-cpu=8GB
#SBATCH --account=research-eemcs-insy
#SBATCH --mail-type=END # Set mail type to 'END' to receive a mail when the job finishes.
srun julia --project=experiments experiments/run_experiments.jl -- data=mnist output_path=results only_models > experiments/train_mnist.log
\ No newline at end of file
......@@ -14,6 +14,7 @@ test_data = load_mnist_test()
# Additional models:
add_models = Dict(
"LeNet-5" => lenet5,
"ResNet-18" => resnet18(;epochs=10),
)
# Default builder:
......
......@@ -35,12 +35,16 @@ function prepare_models(exper::Experiment)
@info "Using additional models."
add_models = Dict{Any,Any}()
for (k, mod) in exper.additional_models
add_models[k] = mod(;
batch_size=batch_size(exper),
finaliser=exper.finaliser,
loss=exper.loss,
epochs=exper.epochs,
)
if isa(mod, Function)
add_models[k] = mod(;
batch_size=batch_size(exper),
finaliser=exper.finaliser,
loss=exper.loss,
epochs=exper.epochs,
)
else
add_models[k] = mod
end
end
models = merge(models, add_models)
end
......
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