mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
fixed import error
This commit is contained in:
parent
5c7d37427c
commit
cc158d64a9
2 changed files with 6 additions and 2 deletions
|
|
@ -19,9 +19,13 @@ class Gaussian(likelihood):
|
||||||
self._std = np.ones((1,D))
|
self._std = np.ones((1,D))
|
||||||
self.Y = self.data
|
self.Y = self.data
|
||||||
|
|
||||||
#TODO: make this work efficiently (only compute YYT if D>>N)
|
# if self.D > self.N:
|
||||||
self.YYT = np.dot(self.Y,self.Y.T)
|
self.YYT = np.dot(self.Y,self.Y.T)
|
||||||
self.trYYT = np.trace(self.YYT)
|
self.trYYT = np.trace(self.YYT)
|
||||||
|
# else:
|
||||||
|
# self.YYT = None
|
||||||
|
# self.trYYT = None
|
||||||
|
|
||||||
self._set_params(np.asarray(variance))
|
self._set_params(np.asarray(variance))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import numpy as np
|
||||||
from sparse_GP import sparse_GP
|
from sparse_GP import sparse_GP
|
||||||
from .. import likelihoods
|
from .. import likelihoods
|
||||||
from .. import kern
|
from .. import kern
|
||||||
from ..inference.likelihoods import likelihood
|
from ..likelihoods import likelihood
|
||||||
from GP_regression import GP_regression
|
from GP_regression import GP_regression
|
||||||
|
|
||||||
class sparse_GP_regression(sparse_GP):
|
class sparse_GP_regression(sparse_GP):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue