Memo‎ > ‎

Use a 1-liner of gnuplot to plot loss in Caffe's log

posted Jul 10, 2019, 5:25 AM by Teng-Yok Lee

This can be very helpful when analyzing logs so need to write extra script.

$ gnuplot -p -e "plot '<cat' with lines"
It will plot the values from stdin. Typically I used it when analyzing the logs from Caffe. For instance, In the example  below, I extract loss #0 from the training network from file caffe.bin.INFO, use cut to filter the value, and then pass it to gnuplot.

$ grep "Train net output #0" caffe.bin.INFO | cut -d = -f 2 | cut -d " " -f 2 | gnuplot -p -e "plot '<cat' with lines"

Comments