-
Notifications
You must be signed in to change notification settings - Fork 0
/
sgd.sh
executable file
·36 lines (35 loc) · 2.17 KB
/
sgd.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
#!/bin/bash
# dont run this unless you want to experience freeeeeeeeeeeeeeze
declare -a arr=("-a=loss=huber,fit_intercept=1"
"-a=loss=epsilon_insensitive,fit_intercept=1"
"-a=loss=squared_epsilon_insensitive,fit_intercept=1"
"-a=loss=squared_loss,fit_intercept=0"
"-a=loss=huber,fit_intercept=0"
"-a=loss=epsilon_insensitive,fit_intercept=0"
"-a=loss=squared_epsilon_insensitive,fit_intercept=0"
"-a=loss=squared_loss,fit_intercept=1"
"-a=loss=squared_loss,fit_intercept=1 -u=true -ul=8"
"-a=loss=huber,fit_intercept=1 -u=true -ul=8"
"-a=loss=epsilon_insensitive,fit_intercept=1 -u=true -ul=8"
"-a=loss=squared_epsilon_insensitive,fit_intercept=1 -u=true -ul=8"
"-a=loss=squared_loss,fit_intercept=0 -u=true -ul=8"
"-a=loss=huber,fit_intercept=0 -u=true -ul=8"
"-a=loss=epsilon_insensitive,fit_intercept=0 -u=true -ul=8"
"-a=loss=squared_epsilon_insensitive,fit_intercept=0 -u=true -ul=8"
"-a=loss=squared_epsilon_insensitive,fit_intercept=0 -u=true -ul=8 -f=method,url,payload_size"
"-a=loss=squared_loss,fit_intercept=1 -u=true -ul=8 -f=method,url,payload_size"
"-a=loss=huber,fit_intercept=1 -u=true -ul=8 -f=method,url,payload_size"
"-a=loss=epsilon_insensitive,fit_intercept=1 -u=true -ul=8 -f=method,url,payload_size"
"-a=loss=squared_loss,fit_intercept=0 -u=true -ul=8 -f=method,url,payload_size"
"-a=loss=huber,fit_intercept=0 -u=true -ul=8 -f=method,url,payload_size"
"-a=loss=epsilon_insensitive,fit_intercept=0 -u=true -ul=8 -f=method,url,payload_size"
"-a=loss=epsilon_insensitive,fit_intercept=1 -u=true -ul=8 -f=method,url,payload_size"
"-a=loss=squared_epsilon_insensitive,fit_intercept=1 -u=true -ul=8 -f=method,url,payload_size"
)
mkdir -p "results"
for i in "${arr[@]}"
do
echo "$i"
touch "results/sgd_$i"
python src/limython.py -n=3 -l=10000 -m=sgd -r=false -p=best-counter -k=10 $i > "results/sgd_$i" &
done