mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
[white hetero] additional check for prediction
This commit is contained in:
parent
bcb7679b5c
commit
90f29405ba
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class WhiteHeteroscedastic(Static):
|
||||||
return 0.
|
return 0.
|
||||||
|
|
||||||
def K(self, X, X2=None):
|
def K(self, X, X2=None):
|
||||||
if X2 is None:
|
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 np.zeros((X.shape[0], X2.shape[0]))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue