mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-12 05:22:38 +02:00
readded float variance
This commit is contained in:
parent
25bcf233f3
commit
d63e03e1bd
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ class Gaussian(likelihood):
|
||||||
return ["noise_variance"]
|
return ["noise_variance"]
|
||||||
|
|
||||||
def _set_params(self, x):
|
def _set_params(self, x):
|
||||||
|
x = float(x)
|
||||||
if self._variance != x:
|
if self._variance != x:
|
||||||
self.precision = 1. / x
|
self.precision = 1. / x
|
||||||
self.covariance_matrix = np.eye(self.N) * x
|
self.covariance_matrix = np.eye(self.N) * x
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue