small tweak to the gradients in sparse GP

This commit is contained in:
James Hensman 2012-12-07 23:03:53 -08:00
parent e6d08348c7
commit ab56f3f9b7
3 changed files with 5 additions and 10 deletions

View file

@ -54,5 +54,6 @@ class sparse_GPLVM(sparse_GP_regression, GPLVM):
def plot(self):
GPLVM.plot(self)
#passing Z without a small amout of jitter will induce the white kernel where we don;t want it!
mu, var = sparse_GP_regression.predict(self, self.Z+np.random.randn(*self.Z.shape)*0.0001)
pb.plot(mu[:, 0] , mu[:, 1], 'ko')