mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
minor formatting changes
This commit is contained in:
parent
835632e985
commit
7a8d8be295
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ class Gaussian(likelihood):
|
||||||
def __init__(self, data, variance=1., normalize=False):
|
def __init__(self, data, variance=1., normalize=False):
|
||||||
self.is_heteroscedastic = False
|
self.is_heteroscedastic = False
|
||||||
self.Nparams = 1
|
self.Nparams = 1
|
||||||
self.Z = 0. # a correction factor which accounts for the approximation made
|
self.Z = 0. # a correction factor which accounts for the approximation made
|
||||||
N, self.D = data.shape
|
N, self.D = data.shape
|
||||||
|
|
||||||
# normalization
|
# normalization
|
||||||
|
|
@ -54,8 +54,8 @@ class Gaussian(likelihood):
|
||||||
x = float(x)
|
x = float(x)
|
||||||
if self._variance != x:
|
if self._variance != x:
|
||||||
self._variance = x
|
self._variance = x
|
||||||
self.covariance_matrix = np.eye(self.N) * self._variance
|
|
||||||
self.precision = 1. / self._variance
|
self.precision = 1. / self._variance
|
||||||
|
self.covariance_matrix = np.eye(self.N) * self._variance
|
||||||
self.V = (self.precision) * self.Y
|
self.V = (self.precision) * self.Y
|
||||||
|
|
||||||
def predictive_values(self, mu, var, full_cov):
|
def predictive_values(self, mu, var, full_cov):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue