Automatic commit
[universe.git] / test.sh
1 #!/bin/bash
2
3 #============================================================================#
4 # This program is free software; you can redistribute it and/or              #
5 # modify it under the terms of the GNU General Public License                #
6 # version 2 as published by the Free Software Foundation.                    #
7 #                                                                            #
8 # This program is distributed in the hope that it will be useful, but        #
9 # WITHOUT ANY WARRANTY; without even the implied warranty of                 #
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU          #
11 # General Public License for more details.                                   #
12 #                                                                            #
13 # Written and (C) by François Fleuret                                        #
14 # Contact <francois.fleuret@epfl.ch> for comments & bug reports              #
15 #============================================================================#
16
17 make -k
18
19 MAIN=./main
20 TASK=hit_shape.task
21 DEGREE=0
22
23 case $1 in
24
25     train)
26         ${MAIN} --task ${TASK} ${DEGREE} \
27             --no-window \
28             --nb-training-iterations=1000 \
29             --action-mode=random --nb-ticks=5000 \
30             --proportion-for-training=1.0 --save-file=dump.mem
31         ;;
32
33     test)
34         ${MAIN} --task ${TASK} ${DEGREE} \
35             --nb-training-iterations=1000 \
36             --action-mode=intelligent \
37             --load-file=dump.mem
38         ;;
39
40     *)
41         echo "$0 <test|train>"
42         exit 1
43
44 esac