-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun
More file actions
executable file
·68 lines (56 loc) · 2.16 KB
/
run
File metadata and controls
executable file
·68 lines (56 loc) · 2.16 KB
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
67
#!/bin/bash
# declare -a input_strs=(0 7 14 21 28 42 56)
# declare -a cv_years=(1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 2012 2014 2016 2018)
# declare -a TYPES=("GP" "LM")
mkdir -p nlZs
declare -a input_strs=(42 56)
declare -a cv_years=(2020)
declare -a TYPES=("GP")
number_file(){
input_str=$1
cv_year=$2
TYPE=$3
echo $(ls nlZs/"$TYPE"_"$cv_year"day"$input_str"* | wc -l)
}
one_job(){
input_str=$1
cv_year=$2
TYPE=$3
# echo $("./onerun $input_str $cv_year $TYPE")
echo $(bsub -R '(!gpu) span[hosts=1]' -G SEAS-Lab-Garnett -o /home/research/chenyehu/log/Log."${input_str}_${cv_year}_${TYPE}" -J "${input_str}_${cv_year}_${TYPE}" "./onerun $input_str $cv_year $TYPE")
}
for TYPE in ${TYPES[@]}; do
for input_str in ${input_strs[@]}; do
for cv_year in ${cv_years[@]}; do
bsub -R '(!gpu) span[hosts=1]' -G SEAS-Lab-Garnett -o "./${TYPE}_${input_str}_${cv_year}".log -J "${TYPE}_${input_str}_${cv_year}" "./onerun $TYPE $input_str $cv_year"
done
done
done
# for TYPE in ${TYPES[@]}; do
# for input_str in ${input_strs[@]}; do
# for cv_year in ${cv_years[@]}; do
# bsub -R '(!gpu) span[hosts=1]' -o "./${TYPE}_${input_str}_${cv_year}".log -G SEAS-Lab-Garnett -J "${TYPE}_${input_str}_${cv_year}" "./matlabrun $TYPE $input_str"
# done
# done
# done
# for TYPE in ${TYPES[@]}; do
# for input_str in ${input_strs[@]}; do
# # bsub -R '(!gpu) span[hosts=1]' -G SEAS-Lab-Garnett "./matlabrun '$TYPE' $input_str"
# for cv_year in ${cv_years[@]}; do
# # for (( i=1; i<=$SEARCH_SIZE; i++ )) do
# # nlZs=$(one_job $input_str $cv_year $TYPE $i)
# # echo $nlZs
# # done
# # nlZs=$(one_job $input_str $cv_year $TYPE)
# # echo $nlZs
# # n=$(number_file $input_str $cv_year $TYPE)
# # if [ $n -lt 100 ]
# # then
# # echo $TYPE $cv_year $input_str
# # fi
# # echo downloadresults/"LOO${TYPE}_${cv_year}day${input_str}_${best_cv_idx[i]}.csv"
# done
# i=$((i+1))
# done
# done
# declare -a input_strs=(0)