mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 18:42:39 +02:00
Fixed small bug in m.plot() when samples are shown
This commit is contained in:
parent
6656393441
commit
d8ca31121b
1 changed files with 1 additions and 0 deletions
|
|
@ -207,6 +207,7 @@ class GP_regression(model):
|
|||
m,v = self.predict(Xnew,slices=which_functions)
|
||||
gpplot(Xnew,m,v)
|
||||
if samples:
|
||||
m,v = self.predict(Xnew,slices=which_functions,full_cov=True)
|
||||
s = np.random.multivariate_normal(m.flatten(),v,samples)
|
||||
pb.plot(Xnew.flatten(),s.T, alpha = 0.4, c='#3465a4', linewidth = 0.8)
|
||||
pb.plot(Xorig,Yorig,'kx',mew=1.5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue