mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 21:12:38 +02:00
Update gp.py
Sample return seemed to have been based on number of training data, not number of posterior samples requested.
This commit is contained in:
parent
97639ff2a6
commit
cb1ab89d8a
1 changed files with 1 additions and 1 deletions
|
|
@ -564,7 +564,7 @@ class GP(Model):
|
|||
if self.output_dim == 1:
|
||||
return sim_one_dim(m, v)
|
||||
else:
|
||||
fsim = np.empty((self.output_dim, self.num_data, size))
|
||||
fsim = np.empty((self.output_dim, X.shape[1], size))
|
||||
for d in range(self.output_dim):
|
||||
if full_cov and v.ndim == 3:
|
||||
fsim[d] = sim_one_dim(m[:, d], v[:, :, d])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue