mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 18:42:39 +02:00
fixed bug in my schoolboy mathematics
This commit is contained in:
parent
3a61c39cb8
commit
7a54660689
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ class Gaussian(likelihood):
|
|||
return ["noise variance"]
|
||||
|
||||
def _set_params(self,x):
|
||||
self._variance = x
|
||||
self._variance = float(x)
|
||||
self.covariance_matrix = np.eye(self.N)*self._variance
|
||||
self.precision = 1./self._variance
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ class sparse_GP(GP):
|
|||
dbeta += - 0.5 * self.D * (self.psi0.sum() - np.trace(self.A)/beta*sf2)
|
||||
dbeta += - 0.5 * self.D * np.sum(self.Bi*self.A)/beta
|
||||
dbeta += np.sum((self.C - 0.5 * mdot(self.C,self.psi2_beta_scaled,self.C) ) * self.psi1VVpsi1 )/beta
|
||||
self.partial_for_likelihood = -dbeta*self.likelihood.precision
|
||||
self.partial_for_likelihood = -dbeta*self.likelihood.precision**2
|
||||
|
||||
|
||||
def _set_params(self, p):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue