Update parselog.sh
authorSergio Guadarrama <sguada@gmail.com>
Sun, 9 Feb 2014 22:08:10 +0000 (14:08 -0800)
committerSergio Guadarrama <sguada@gmail.com>
Sun, 9 Feb 2014 22:08:10 +0000 (14:08 -0800)
Removed parameters

scripts/parselog.sh

index def1200..de768ec 100644 (file)
@@ -7,18 +7,6 @@ if [ "$#" -lt 1 ]
 then
 echo "Usage parselog.sh /path_to/caffe.log"
 fi
-if [ "$#" -gt 1 ]
-then
- INIT=$2
-else
- INIT=0
-fi
-if [ "$#" -gt 2 ]
-then
- INC=$3
-else
- INC=1000
-fi
 LOG=`basename $1`
 grep -B 2 'Test ' $1 > aux.txt
 grep 'Iteration ' aux.txt | awk -F ',| ' '{print $7}' > aux0.txt
@@ -26,4 +14,4 @@ grep 'Test score #0' aux.txt | awk '{print $8}' > aux1.txt
 grep 'Test score #1' aux.txt | awk '{print $8}' > aux2.txt
 grep ' loss =' $1 | awk '{print $6,$9}' | sed 's/,//g' | column -t > $LOG.loss 
 paste aux0.txt aux1.txt aux2.txt | column -t > $LOG.test
-rm aux0.txt aux1.txt aux2.txt
\ No newline at end of file
+rm aux0.txt aux1.txt aux2.txt