diff --git a/GPy/core/sparse_gp.py b/GPy/core/sparse_gp.py index 2c0e7547..29daa71d 100644 --- a/GPy/core/sparse_gp.py +++ b/GPy/core/sparse_gp.py @@ -68,7 +68,7 @@ class SparseGP(GP): self.psi1 = self.kern.K(self.X, self.Z) self.psi2 = None - self.posterior = self.inference_method.inference(??) + #self.posterior = self.inference_method.inference(??) super(SparseGP, self).parameters_changed() diff --git a/GPy/core/svigp.py b/GPy/core/svigp.py index 95c3b592..73b6d090 100644 --- a/GPy/core/svigp.py +++ b/GPy/core/svigp.py @@ -4,12 +4,12 @@ import numpy as np import pylab as pb from ..util.linalg import pdinv, mdot, tdot, dpotrs, dtrtrs, jitchol, backsub_both_sides -from gp_base import GPBase +from gp import GP import time import sys -class SVIGP(GPBase): +class SVIGP(GP): """ Stochastic Variational inference in a Gaussian Process @@ -44,7 +44,7 @@ class SVIGP(GPBase): def __init__(self, X, likelihood, kernel, Z, q_u=None, batchsize=10, X_variance=None): - GPBase.__init__(self, X, likelihood, kernel, normalize_X=False) + GP.__init__(self, X, likelihood, kernel, normalize_X=False) self.batchsize=batchsize self.Y = self.likelihood.Y.copy() self.Z = Z