-
Notifications
You must be signed in to change notification settings - Fork 7
/
snuba_card_sweep_mnist.sh
executable file
·53 lines (46 loc) · 1.58 KB
/
snuba_card_sweep_mnist.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
for seed in 0 1 2
do
# Varying number of labels
resdir=results/mnist/snuba_nlabels
mkdir -p ${resdir}
####TODO DO NOT REMOVE THESE RESULTS #rm -rf ${resdir}/*
embedding=raw
snuba_cardinality=2
n_labeled_points=100
em_hard_labels=True
snuba_combo_samples=1_000
for n_labeled_points in 100
do
savedir=${resdir}/n_labeled_points_${n_labeled_points}
mkdir -p ${savedir}
python fwrench/applications/mnist.py \
--embedding=${embedding} \
--em_hard_labels=${em_hard_labels} \
--snuba_cardinality=${snuba_cardinality} \
--n_labeled_points=${n_labeled_points} \
--snuba_combo_samples=${snuba_combo_samples} \
|& tee -a ${savedir}/res_seed${seed}.log
done
# Varying cardinality
resdir=results/mnist/snuba_cardinalities
mkdir -p ${resdir}
####TODO DO NOT REMOVE THESE RESULTS #rm -rf ${resdir}/*
embedding=raw
snuba_cardinality=2
n_labeled_points=100
em_hard_labels=True
snuba_combo_samples=1_000
for snuba_cardinality in 64 128 256 512 #1 2 4 8 16 32
do
savedir=${resdir}/snuba_cardinality_${snuba_cardinality}
mkdir -p ${savedir}
python fwrench/applications/mnist.py \
--embedding=${embedding} \
--em_hard_labels=${em_hard_labels} \
--snuba_cardinality=${snuba_cardinality} \
--n_labeled_points=${n_labeled_points} \
--snuba_combo_samples=${snuba_combo_samples} \
|& tee -a ${savedir}/res_seed${seed}.log
done
done