Modifications made to tutorial due to changes in GPy

This commit is contained in:
Nicolas 2013-02-07 13:04:29 +00:00
parent 8fd79f6eee
commit 2abaafd882
5 changed files with 21 additions and 22 deletions

View file

@ -243,7 +243,8 @@ class GP(model):
m, var, lower, upper = self.predict(Xnew, slices=which_functions)
gpplot(Xnew,m, lower, upper)
pb.plot(self.X[which_data],self.likelihood.data[which_data],'kx',mew=1.5)
ymin,ymax = lower.min(),upper.max()
ymin,ymax = min(np.append(self.likelihood.data,lower)), max(np.append(self.likelihood.data,upper))
ymin, ymax = ymin - 0.1*(ymax - ymin), ymax + 0.1*(ymax - ymin)
pb.xlim(xmin,xmax)
pb.ylim(ymin,ymax)