forked from unitn-sml/choice-perceptron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaaai18.sh
executable file
·66 lines (62 loc) · 2.01 KB
/
aaai18.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
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
num_cpus=`lscpu | grep '^CPU(s)' | tr -s ' ' | cut -d' ' -f2`
# NOTE make sure to set FACTOR=10 and disable gecode parallelization
for k in `seq 2 5`; do
for sampling in uniform normal; do
for c in 0.1 0.5 0.9; do
for learner in perceptron; do
echo "RUNNING $k $sampling $c $learner"
./aaai18.py exp cartesian \
-T 50 \
-k $k \
-c $c \
-X 0.1 0.2 0.5 1 2 5 10 \
-L $learner \
-W users/utilityParams_synthetic_4_${sampling}.txt -S $sampling \
-p $num_cpus \
-v \
| egrep -i 'user|regret'
done
done
done
done
# NOTE make sure that FACTOR=10 and enable gecode parallelization
for c in 0.1 0.5 0.9; do
for sampling in uniform normal; do
for learner in perceptron; do
echo "RUNNING 2 $sampling $c $learner"
python3.5 ./aaai18.py exp pc \
-T 100 \
-k 2 \
-c $c \
-X 0.1 0.2 0.5 1 2 5 10 \
-L $learner \
-W users/pc_${sampling}.txt -S ${sampling} \
-p 1 \
-M \
-v \
| egrep -i 'user|regret'
done
done
done
# NOTE make sure that FACTOR=10 and enable gecode parallelization
for k in `seq 2 4`; do
for c in 0.1 0.5 0.9; do
for sampling in uniform normal; do
for learner in perceptron; do
echo "RUNNING 2 $sampling $c $learner"
python3.5 ./aaai18.py exp travel \
-T 100 \
-k $k \
-c $c \
-X 0.1 0.2 0.5 1 2 5 10 \
-L $learner \
-S ${sampling} \
-p 1 \
-M \
-v \
| egrep -i 'user|regret'
done
done
done
done