mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-14 14:32:37 +02:00
[predict] using gp predict in sparse gp and predictive variable
This commit is contained in:
parent
63e1fa05e4
commit
78257d2314
2 changed files with 25 additions and 24 deletions
|
|
@ -205,7 +205,7 @@ class GP(Model):
|
|||
if kern is None:
|
||||
kern = self.kern
|
||||
|
||||
Kx = kern.K(self.X, Xnew)
|
||||
Kx = kern.K(self._predictive_variable, Xnew)
|
||||
mu = np.dot(Kx.T, self.posterior.woodbury_vector)
|
||||
if len(mu.shape)==1:
|
||||
mu = mu.reshape(-1,1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue