##################################
# weights in weight space
##################

long = -1
short = 1 

set xtics
set autos xy
set nologs xy
set noparametric
load "gnu/square"
# set size 0.54,0.7
set xrange [-0.2:3] ; set nologs xy ; set yrange  [-1.2:3] ; set nokey 
# set xlabel "w1" ; set ylabel "w2" 
set title "Hmc Monte Carlo method, alpha=0.01",0
plot "origin" u 2:3 w p 3 6
pause long "Hybrid Monte Carlo method"

set autos xy
set title "",0
plot "whmc" u 2:3 w l 1 2, "whmc" u 2:3 w p 3 2, "wlwd01" u 2:3 w l 5 3, "wlwd01" u 2:3 w p 6 3 
pause long ""

set title "",0
plot "whmc" u 2:3 w l 1 2, "whmc" u 2:3 w p 3 2, "wlwd01" u 2:3 w l 5 3, "wlwd01" u 2:3 w p 6 3, "whmc.1.1075" u 2:3 w l 7 2, "whmc.1.1075" u 2:3 w p 4 6 
pause long ""


##################################
# weights versus time  (hmc)
##################################
set nologs xy
set title "weights v epochs, Hybrid Monte Carlo"
set xlabel ; set ylabel ; set autos xy ;  set nokey ;  set xtics 0,10000,40000
set xrange [0:40000]
 plot "whmc" u 10:1 t "w0" w l 1, "whmc" u 10:2 t "w1" w l 3, "whmc" u 10:3 t "w2" w l 4
pause long "weights versus time, HMC method"
set xtics 

set nologs xy
set title "weights v time, hmc cf. optimizer"
set xlabel ; set ylabel ; set autos xy ;  set nokey ;  set xtics 0,10000,40000
set xrange [0:40000]
 plot "whmc" u 10:1 t "w0" w l 1, "whmc" u 10:2 t "w1" w l 3, "whmc" u 10:3 t "w2" w l 4 , "wlwd01" u 4:1 t "w0" w l 2 2, "wlwd01" u 4:2 t "w1" w l 2 2, "wlwd01" u 4:3 t "w2" w l  2 2
pause long "weights v time, hmc cf. optimizer "

set xtics 
set logs x
set xrange [1:100000]
set title "weights v time, hmc cf optimizer"
 plot "whmc" u 10:1 t "w0" w l 1, "whmc" u 10:2 t "w1" w l 3, "whmc" u 10:3 t "w2" w l 4 , "wlwd01" u 4:1 t "w0" w l 2 2, "wlwd01" u 4:2 t "w1" w l 2 2, "wlwd01" u 4:3 t "w2" w l  2 2
pause long "weights versus time, hmc cf. optimizer "
