-
Notifications
You must be signed in to change notification settings - Fork 3
/
run_bw.sh
31 lines (28 loc) · 1.29 KB
/
run_bw.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
#!/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"
data=$1 #kmnist or fmnist
arch="convnet"
epochs=20
$PYPATH/python src/train.py --nu 0.0 --epochs $epochs --data $data --arch $arch || exit 1
$PYPATH/python src/train.py --nu 0.5 --epochs $epochs --data $data --arch $arch || exit 1
$PYPATH/python src/train.py --nu 1.0 --epochs $epochs --data $data --arch $arch || exit 1
$PYPATH/python src/train.py --nu 5.0 --epochs $epochs --data $data --arch $arch || exit 1
$PYPATH/python src/train.py --nu 10.0 --epochs $epochs --data $data --arch $arch || exit 1