File: gen_best_feats.sh

package info (click to toggle)
cryptominisat 5.11.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,432 kB
  • sloc: cpp: 55,148; ansic: 9,642; python: 8,899; sh: 1,336; php: 477; sql: 403; javascript: 173; xml: 34; makefile: 15
file content (47 lines) | stat: -rwxr-xr-x 920 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/bash

set -e
set -x


basename="8march-2020-3acd81dc55df3-best-feats"
basename="aes-30-march-2020-a1e0e19be0c1"
mkdir -p ${basename}
rm -f ${basename}/*
git rev-parse HEAD > ${basename}/out_git
cat gen_best_feats.sh >> ${basename}/out_git
md5sum *.dat >> ${basename}/out_git


function doit() {

tiers=(
"short"
"long"
"forever")

for tier in "${tiers[@]}"
do
    echo "Doing ${tier}_${computed}computed"

    /usr/bin/time --verbose -o "${basename}/output_${tier}_${computed}computed.timeout" \
    ../cldata_predict.py "${tier}-comb-cut1-$cut1-cut2-$cut2-limit-${limit}.dat" \
    --tier ${tier} --regressor "xgboost" --only "$only" \
    --features "${computed}_computed" > "${basename}/output_${tier}_${computed}computed-cut1-${cut1}-cut2-${cut2}"

    echo "Done with ${tier}_${computed}computed"
done

}

limit=2000
cut1="5.0"
cut2="30.0"

only="1.0"
computed="no"
doit

only="0.02"
computed="all"
doit