mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 18:42:39 +02:00
Modifications made to tutorial due to changes in GPy
This commit is contained in:
parent
8fd79f6eee
commit
2abaafd882
5 changed files with 21 additions and 22 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue