mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
minor perfomance tweak for GP regression
This commit is contained in:
parent
fe13d2c09a
commit
e6d08348c7
1 changed files with 1 additions and 2 deletions
|
|
@ -83,9 +83,8 @@ class GP_regression(model):
|
|||
"""
|
||||
Computes the model fit using Youter if it's available
|
||||
"""
|
||||
|
||||
if self.Youter is None:
|
||||
return -0.5*np.trace(mdot(self.Y.T,self.Ki,self.Y))
|
||||
return -0.5*np.sum(np.square(np.dot(self.Li,self.Y)))
|
||||
else:
|
||||
return -0.5*np.sum(np.multiply(self.Ki, self.Youter))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue