mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-02 14:45:15 +02:00
noodling
This commit is contained in:
parent
8022de2a86
commit
3c93fa83dd
2 changed files with 4 additions and 4 deletions
|
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue