mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
small changes
This commit is contained in:
parent
d3ae9546f8
commit
06e811b2c3
1 changed files with 5 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ class opt_SGD(Optimizer):
|
||||||
b = len(features)/self.batch_size
|
b = len(features)/self.batch_size
|
||||||
features = [features[i::b] for i in range(b)]
|
features = [features[i::b] for i in range(b)]
|
||||||
NLL = []
|
NLL = []
|
||||||
|
import pylab as plt
|
||||||
for count, j in enumerate(features):
|
for count, j in enumerate(features):
|
||||||
self.model.D = len(j)
|
self.model.D = len(j)
|
||||||
self.model.likelihood.D = len(j)
|
self.model.likelihood.D = len(j)
|
||||||
|
|
@ -246,7 +246,11 @@ class opt_SGD(Optimizer):
|
||||||
NLL.append(f)
|
NLL.append(f)
|
||||||
|
|
||||||
self.fopt_trace.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():
|
# for k in self.param_traces.keys():
|
||||||
# self.param_traces[k].append(self.model.get(k)[0])
|
# self.param_traces[k].append(self.model.get(k)[0])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue