-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathshow_error.plt
More file actions
executable file
·41 lines (34 loc) · 941 Bytes
/
Copy pathshow_error.plt
File metadata and controls
executable file
·41 lines (34 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/gnuplot -c
# Plot MSE and CE train loss iteratively
# Run as:
# ./show_error3.plt -i # to run it iteratively
# ./show_error3.plt # to run it statically
# Alfredo Canziani, Mar 17
# set white on black theme
set terminal wxt background rgb "black" noraise
set xlabel textcolor rgb "white"
set ylabel textcolor rgb "white"
set y2label textcolor rgb "white"
set key textcolor rgb "white"
set border lc rgb 'white'
set grid lc rgb 'white'
set grid
set xlabel "mini batch index / 10"
set ylabel "mMSE"
set y2label "CE"
set y2tics
plot \
"< awk '/batches/{print $18,$21,$25,$29}' ../last/train.log" \
u 0:1 w lines lw 2 title "MSE", \
"" \
u 0:3 w lines lw 2 title "rpl MSE", \
"" \
u 0:2 w lines lw 2 title "CE" axis x1y2, \
"" \
u 0:4 w lines lw 2 title "per CE" axis x1y2
if (ARG1 ne '-i') {
pause -1 # just hang in there
exit
}
pause 5 # wait 5 seconds
reread # and start over