mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +02:00
fixed a bug in all_constrained_indices
This commit is contained in:
parent
9ad17cb811
commit
7561c4c232
1 changed files with 2 additions and 2 deletions
|
|
@ -191,8 +191,8 @@ class parameterised(object):
|
|||
self.constrain(which, transformations.logistic(lower, upper))
|
||||
|
||||
def all_constrained_indices(self):
|
||||
if len(self.constrained_indices):
|
||||
return np.hstack(self.constrained_indices)
|
||||
if len(self.constrained_indices) or len(self.fixed_indices):
|
||||
return np.hstack(self.constrained_indices + self.fixed_indices)
|
||||
else:
|
||||
return np.empty(shape=(0,))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue