In [1]:
import pylearn2.utils
import pylearn2.config
import theano
import neukrill_net.dense_dataset
import neukrill_net.utils
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
import holoviews as hl
%load_ext holoviews.ipython
import sklearn.metrics
In [2]:
m = pylearn2.utils.serial.load(
"/disk/scratch/neuroglycerin/models/8aug_extra_layers_more_hidden_recent.pkl")
In [3]:
def make_curves(model, *args):
curves = None
for c in args:
channel = m.monitor.channels[c]
c = c[0].upper() + c[1:]
if not curves:
curves = hl.Curve(zip(channel.example_record,channel.val_record),group=c)
else:
curves += hl.Curve(zip(channel.example_record,channel.val_record),group=c)
return curves
In [4]:
nll_channels = [c for c in m.monitor.channels.keys() if 'nll' in c]
Looks like the nll for most of these is still improving, following a fairly linear dropoff. Maybe it'll keep going from here if we keep running it:
In [5]:
make_curves(m,*nll_channels)
Out[5]:
Plotting all the monitoring channels at the same time, could see something interesting happening:
In [6]:
make_curves(m,*m.monitor.channels.keys())
Out[6]:
In [7]:
%env PYLEARN2_VIEWER_COMMAND=/afs/inf.ed.ac.uk/user/s08/s0805516/repos/neukrill-net-work/image_hack.sh
%run ~/repos/pylearn2/pylearn2/scripts/show_weights.py /disk/scratch/neuroglycerin/models/8aug_extra_layers_more_hidden_recent.pkl
In [8]:
from IPython.display import Image
In [9]:
def plot_recent_pylearn2():
pl2plt = Image(filename="/afs/inf.ed.ac.uk/user/s08/s0805516/tmp/pylearnplot.png", width=700)
return pl2plt
plot_recent_pylearn2()
Out[9]:
In [14]:
%run ~/repos/pylearn2/pylearn2/scripts/show_weights.py /disk/scratch/neuroglycerin/models/8aug_extra_layers_more_hidden_recent.pkl
plot_recent_pylearn2()
Out[14]: