-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathtest_hyperparameter.sh
More file actions
executable file
·32 lines (26 loc) · 949 Bytes
/
test_hyperparameter.sh
File metadata and controls
executable file
·32 lines (26 loc) · 949 Bytes
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
#!/bin/bash
CONFIG_FILE=config.ini
PARAMETER=signal_processing
for VALUE in 'mfcc' 'fbank'
do
sed -i 's/\('${PARAMETER}' : \).*/\1'${VALUE}'/' ${CONFIG_FILE}
python3 stt.py --train --tb_name ${PARAMETER}'_'${VALUE} --max_epoch 1000
mv data/checkpoints data/checkpoint_${PARAMETER}'_'${VALUE}
mkdir data/checkpoints
done
PARAMETER=batch_normalization
for VALUE in 'True' 'False'
do
sed -i 's/\('${PARAMETER}' : \).*/\1'${VALUE}'/' ${CONFIG_FILE}
python3 stt.py --train --tb_name ${PARAMETER}'_'${VALUE} --max_epoch 1000
mv data/checkpoints data/checkpoint_${PARAMETER}'_'${VALUE}
mkdir data/checkpoints
done
PARAMETER=dataset_size_ordering
for VALUE in 'True' 'False'
do
sed -i 's/\('${PARAMETER}' : \).*/\1'${VALUE}'/' ${CONFIG_FILE}
python3 stt.py --train --tb_name ${PARAMETER}'_'${VALUE} --max_epoch 1000
mv data/checkpoints data/checkpoint_${PARAMETER}'_'${VALUE}
mkdir data/checkpoints
done