mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +02:00
Error in plot corrected
This commit is contained in:
parent
4c7ebb6601
commit
3dc7574c50
1 changed files with 2 additions and 1 deletions
|
|
@ -136,10 +136,11 @@ class GPBase(Model):
|
|||
ax = fig.add_subplot(111)
|
||||
|
||||
if self.X.shape[1] == 1 and not hasattr(self,'multioutput'):
|
||||
resolution = resolution or 200
|
||||
|
||||
Xu = self.X * self._Xscale + self._Xoffset # NOTE self.X are the normalized values now
|
||||
|
||||
Xnew, xmin, xmax = x_frame1D(Xu, plot_limits=plot_limits)
|
||||
Xnew, xmin, xmax = x_frame1D(Xu, plot_limits=plot_limits,resolution=resolution)
|
||||
m, _, lower, upper = self.predict(Xnew, which_parts=which_parts)
|
||||
for d in range(m.shape[1]):
|
||||
gpplot(Xnew, m[:, d], lower[:, d], upper[:, d], axes=ax)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue