mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 20:12:38 +02:00
Fixed model test
This commit is contained in:
parent
926b53bfce
commit
42a415e299
1 changed files with 5 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ from ..core.parameterization import ObsAr
|
|||
from .. import kern
|
||||
from ..core.parameterization.param import Param
|
||||
from ..util.linalg import pdinv
|
||||
from ..likelihoods import Gaussian
|
||||
|
||||
log_2_pi = np.log(2*np.pi)
|
||||
|
||||
|
|
@ -25,8 +26,10 @@ class GPVariationalGaussianApproximation(Model):
|
|||
pages = {786--792},
|
||||
}
|
||||
"""
|
||||
def __init__(self, X, Y, kernel, likelihood,Y_metadata=None):
|
||||
Model.__init__(self,'Variational GP classification')
|
||||
def __init__(self, X, Y, kernel, likelihood=None, Y_metadata=None):
|
||||
Model.__init__(self,'Variational GP')
|
||||
if likelihood is None:
|
||||
likelihood = Gaussian()
|
||||
# accept the construction arguments
|
||||
self.X = ObsAr(X)
|
||||
self.Y = Y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue