From 06e811b2c38683424429dfc1ce466b665a98f257 Mon Sep 17 00:00:00 2001 From: Nicolo Fusi Date: Tue, 16 Apr 2013 15:03:18 +0100 Subject: [PATCH] small changes --- GPy/inference/SGD.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GPy/inference/SGD.py b/GPy/inference/SGD.py index be1c92de..588ced75 100644 --- a/GPy/inference/SGD.py +++ b/GPy/inference/SGD.py @@ -220,7 +220,7 @@ class opt_SGD(Optimizer): b = len(features)/self.batch_size features = [features[i::b] for i in range(b)] NLL = [] - + import pylab as plt for count, j in enumerate(features): self.model.D = len(j) self.model.likelihood.D = len(j) @@ -246,7 +246,11 @@ class opt_SGD(Optimizer): NLL.append(f) self.fopt_trace.append(f) + # fig = plt.figure('traces') + # plt.clf() + # plt.plot(self.param_traces['noise']) + # import pdb; pdb.set_trace() # for k in self.param_traces.keys(): # self.param_traces[k].append(self.model.get(k)[0])