#!/bin/bash
-# Usage parselog.sh caffe.log
+# Usage parse_log.sh caffe.log
# It creates two files one caffe.log.test that contains the loss and test accuracy of the test and
# another one caffe.log.loss that contains the loss computed during the training
if [ "$#" -lt 1 ]
then
-echo "Usage parselog.sh /path/to/your.log"
+echo "Usage parse_log.sh /path/to/your.log"
exit
fi
LOG=`basename $1`
# You had better check the data files before designing your own plots.
# Please generate the neccessary data files with
-# /path/to/caffe/scripts/parselog.sh before plotting.
+# /path/to/caffe/scripts/parse_log.sh before plotting.
# Example usage:
-# ./parselog.sh mnist.log
+# ./parse_log.sh mnist.log
# Now you have mnist.log.train and mnist.log.test.
# gnuplot mnist.gnuplot
def get_log_parsing_script():
dirname = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
- return dirname + '/parselog.sh'
+ return dirname + '/parse_log.sh'
def get_log_file_suffix():
return '.log'