Skip to content

Commit 21881d2

Browse files
committed
script to test benchmark
1 parent 39f9a0d commit 21881d2

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

a_test_benchmark.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./run_benchmark_slurm.sh examples/benchmark/a_mnist4test_mini_erm_only.yaml
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Example benchmark config script.
2+
3+
# list of all domains that are used as test domain
4+
# in a leave-one-out setup, i.e. for each run,
5+
# one domain from this list is chosen as test domain
6+
# while training is performed on all other domains
7+
# of the specified dataset.
8+
test_domains:
9+
- 0
10+
11+
output_dir: zoutput/benchmarks/a_demo_benchmark00
12+
13+
# number of hyperparameter samples per task.
14+
# Thus, the total runs of each task are given
15+
# by len(test_domains) * num_param_samples * num_seeds (see below)
16+
num_param_samples: 2
17+
# sets the seed for hyperparameter sampling.
18+
# With this option and the experiment seeds from
19+
# startseed and endseed, this benchmark is fully reproducible.
20+
sampling_seed: 1 # Optional
21+
22+
# the seed is increased by +1 until it reaches endseed.
23+
# endseed is included, so in total startseed - endseed + 1
24+
# different seeds are used to estimate the stochastic
25+
# variance.
26+
startseed: 1
27+
endseed: 2 # currently included
28+
29+
domainlab_args:
30+
# Domainlab arguments passed to each task.
31+
# task specific arguments take precedence.
32+
task: mnistcolor10
33+
tr_d: [1, 2]
34+
epos: 2
35+
bs: 2
36+
37+
erm:
38+
model: erm
39+
nname: conv_bn_pool_2

0 commit comments

Comments
 (0)