mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-07 02:52:40 +02:00
[white hetero] additional check for prediction
This commit is contained in:
parent
90f29405ba
commit
c72d085e2b
1 changed files with 3 additions and 3 deletions
|
|
@ -104,10 +104,10 @@ class WhiteHeteroscedastic(Static):
|
||||||
return 0.
|
return 0.
|
||||||
|
|
||||||
def K(self, X, X2=None):
|
def K(self, X, X2=None):
|
||||||
if X2 is None and X.shape[0]==self.variance.shape[0]:
|
if X2 is None and X.shape[0] == self.variance.shape[0]:
|
||||||
return np.eye(X.shape[0])*self.variance
|
return np.eye(X.shape[0]) * self.variance
|
||||||
else:
|
else:
|
||||||
return np.zeros((X.shape[0], X2.shape[0]))
|
return 0.
|
||||||
|
|
||||||
def psi2(self, Z, variational_posterior):
|
def psi2(self, Z, variational_posterior):
|
||||||
return np.zeros((Z.shape[0], Z.shape[0]), dtype=np.float64)
|
return np.zeros((Z.shape[0], Z.shape[0]), dtype=np.float64)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue