removed climin dependency unless actually needed

This commit is contained in:
James Hensman 2015-03-03 17:04:15 +00:00
parent 06d7e690f3
commit 965f1aa2cb

View file

@ -25,14 +25,15 @@ class SVGP(SparseGP):
Hensman, Matthews and Ghahramani, Scalable Variational GP Classification, ArXiv 1411.2005
"""
self.batchsize = batchsize
if batchsize is None:
batchsize = X.shape[0]
X_batch, Y_batch = X, Y
KL_scale, batch_scale = 1., 1.
else:
self.X_all, self.Y_all = X, Y
# how to rescale the batch likelihood in case of minibatches
self.batchsize = batchsize
batch_scale = float(self.X_all.shape[0])/float(self.batchsize)
#KL_scale = 1./np.float64(self.mpi_comm.size)
KL_scale = 1.0
import climin.util