mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
slicing: slicing now thorughs the right error
This commit is contained in:
parent
79e0f54c53
commit
4e793fe3a0
2 changed files with 8 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ class _Slice_wrap(object):
|
|||
self.X2 = self.k._slice_X(X2) if X2 is not None else X2
|
||||
self.ret = True
|
||||
else:
|
||||
assert X.shape[1] == self.k.input_dim, "You did not specify active_dims and X has wrong shape: X_dim={} -- input_dim={}".format(X.shape[1], self.input_dim)
|
||||
self.X = X
|
||||
self.X2 = X2
|
||||
self.ret = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue