mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 20:42:39 +02:00
Testing for dims should be checking whether 2nd dim is greater than 1
This commit is contained in:
parent
cb1ab89d8a
commit
ff4f861fcb
1 changed files with 1 additions and 1 deletions
|
|
@ -568,7 +568,7 @@ class GP(Model):
|
||||||
for d in range(self.output_dim):
|
for d in range(self.output_dim):
|
||||||
if full_cov and v.ndim == 3:
|
if full_cov and v.ndim == 3:
|
||||||
fsim[d] = sim_one_dim(m[:, d], v[:, :, d])
|
fsim[d] = sim_one_dim(m[:, d], v[:, :, d])
|
||||||
elif (not full_cov) and v.ndim == 2:
|
elif (not full_cov) and v.shape[1]>1:
|
||||||
fsim[d] = sim_one_dim(m[:, d], v[:, d])
|
fsim[d] = sim_one_dim(m[:, d], v[:, d])
|
||||||
else:
|
else:
|
||||||
fsim[d] = sim_one_dim(m[:, d], v)
|
fsim[d] = sim_one_dim(m[:, d], v)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue