File tree 1 file changed +42
-0
lines changed 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ # !/usr/bin/gnuplot -c
2
+
3
+ # Plot MSE and CE train loss iteratively
4
+
5
+ # Run as:
6
+ # ./show_error_exp.plt EXP -i # to run it iteratively
7
+ # ./show_error_exp.plt EXP # to run it statically
8
+
9
+ # Alfredo Canziani, Mar 17
10
+
11
+ # Get most updated experiments
12
+ !./update_experiments.sh -q
13
+
14
+ # set white on black theme
15
+ set terminal wxt background rgb " black" noraise
16
+ set xlabel textcolor rgb " white"
17
+ set ylabel textcolor rgb " white"
18
+ set y2label textcolor rgb " white"
19
+ set key textcolor rgb " white"
20
+ set border lc rgb ' white'
21
+ set grid lc rgb ' white'
22
+
23
+ set grid
24
+ set xlabel " mini batch index / 10"
25
+ set ylabel " mMSE"
26
+ set y2label " CE"
27
+ set y2tics
28
+ plot \
29
+ " < awk '/data/{print $18,$21,$25}' ../results/" .ARG1 ." /train.log" \
30
+ u 0 :1 w lines lw 2 title " MSE" , \
31
+ " " \
32
+ u 0 :2 w lines lw 2 title " CE" axis x1 y2 , \
33
+ " " \
34
+ u 0 :3 w lines lw 2 title " rpl MSE"
35
+
36
+ if (ARG2 ne ' -i' ) {
37
+ pause -1 # just hang in there
38
+ exit
39
+ }
40
+
41
+ pause 5 # wait 5 seconds
42
+ reread # and start over
You can’t perform that action at this time.
0 commit comments