-
Notifications
You must be signed in to change notification settings - Fork 3
/
tune_odin.sh
37 lines (34 loc) · 1.32 KB
/
tune_odin.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
#!/bin/bash
# Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/
# Written by Niccolo Antonello <[email protected]>,
# Philip N. Garner <[email protected]>
#
# This file is part of tsoftmax.
#
# tsoftmax is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# tsoftmax is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with tsoftmax. If not, see <http://www.gnu.org/licenses/>.
. ./path.sh
echo "Using conda enviroment: $PYPATH"
arch="convnet"
data="kmnist"
data_test="fakedata_bw"
for eps in 0.0001 0.001 0.01; do
for T in 100000 10000 1000; do
echo "ODIN eps=$eps T=$T"
$PYPATH/python src/get_conf.py --arch $arch --data $data --test-data $data \
--mode odin --T $T --eps $eps || exit 1
$PYPATH/python src/get_conf.py --arch $arch --data $data --test-data $data_test \
--mode odin --T $T --eps $eps || exit 1
$PYPATH/python src/get_FOM.py --arch $arch --data $data --ood $data_test \
--mode odin || exit 1
done
done