mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
efficient handling of Y and YYT
This commit is contained in:
parent
cc158d64a9
commit
eddb677446
2 changed files with 9 additions and 6 deletions
|
|
@ -19,12 +19,12 @@ class Gaussian(likelihood):
|
|||
self._std = np.ones((1,D))
|
||||
self.Y = self.data
|
||||
|
||||
# if self.D > self.N:
|
||||
self.YYT = np.dot(self.Y,self.Y.T)
|
||||
self.trYYT = np.trace(self.YYT)
|
||||
# else:
|
||||
# self.YYT = None
|
||||
# self.trYYT = None
|
||||
if D > self.N:
|
||||
self.YYT = np.dot(self.Y,self.Y.T)
|
||||
self.trYYT = np.trace(self.YYT)
|
||||
else:
|
||||
self.YYT = None
|
||||
self.trYYT = None
|
||||
|
||||
self._set_params(np.asarray(variance))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue