This commit is contained in:
James Hensman 2014-01-23 17:31:03 +00:00
parent 8022de2a86
commit 3c93fa83dd
2 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ class SparseGP(GP):
self.psi1 = self.kern.K(self.X, self.Z) self.psi1 = self.kern.K(self.X, self.Z)
self.psi2 = None self.psi2 = None
self.posterior = self.inference_method.inference(??) #self.posterior = self.inference_method.inference(??)
super(SparseGP, self).parameters_changed() super(SparseGP, self).parameters_changed()

View file

@ -4,12 +4,12 @@
import numpy as np import numpy as np
import pylab as pb import pylab as pb
from ..util.linalg import pdinv, mdot, tdot, dpotrs, dtrtrs, jitchol, backsub_both_sides 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 time
import sys import sys
class SVIGP(GPBase): class SVIGP(GP):
""" """
Stochastic Variational inference in a Gaussian Process 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): 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.batchsize=batchsize
self.Y = self.likelihood.Y.copy() self.Y = self.likelihood.Y.copy()
self.Z = Z self.Z = Z