mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
catch beta > 0 not needed anymore
This commit is contained in:
parent
0092ad9403
commit
66b96cb3d3
1 changed files with 3 additions and 4 deletions
|
|
@ -51,12 +51,11 @@ class Gaussian(likelihood):
|
|||
return ["noise_variance"]
|
||||
|
||||
def _set_params(self, x):
|
||||
x = float(x)
|
||||
if self._variance != x:
|
||||
self._variance = x
|
||||
self.precision = 1. / self._variance
|
||||
self.covariance_matrix = np.eye(self.N) * self._variance
|
||||
self.precision = 1. / x
|
||||
self.covariance_matrix = np.eye(self.N) * x
|
||||
self.V = (self.precision) * self.Y
|
||||
self._variance = x
|
||||
|
||||
def predictive_values(self, mu, var, full_cov):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue