mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 02:24:17 +02:00
much tidying and breakage in the GP class
This commit is contained in:
parent
791d240d96
commit
ea0802d938
2 changed files with 72 additions and 126 deletions
|
|
@ -196,6 +196,9 @@ class gaussian(likelihood):
|
|||
Gaussian likelihood
|
||||
Y is expected to take values in (-inf,inf)
|
||||
"""
|
||||
self.variance = variance
|
||||
self._data = Y
|
||||
self.
|
||||
def moments_match(self,i,tau_i,v_i):
|
||||
"""
|
||||
Moments match of the marginal approximation in EP algorithm
|
||||
|
|
@ -219,8 +222,8 @@ class gaussian(likelihood):
|
|||
if U is not None:
|
||||
pb.plot(U,np.ones(U.shape[0])*self.Y.min()*.8,'r|',mew=1.5,markersize=12)
|
||||
|
||||
def predictive_mean(self,mu,Sigma):
|
||||
return mu
|
||||
|
||||
def _log_likelihood_gradients():
|
||||
raise NotImplementedError
|
||||
else:
|
||||
var = var[:,None] * np.square(self._Ystd)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue