mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +02:00
params left in __get/setitem__
This commit is contained in:
parent
f5effb8cb6
commit
c773672b69
1 changed files with 2 additions and 2 deletions
|
|
@ -93,9 +93,9 @@ class Parameterized(object):
|
|||
if len(matches):
|
||||
val = np.array(val)
|
||||
assert (val.size == 1) or val.size == len(matches), "Shape mismatch: {}:({},)".format(val.size, len(matches))
|
||||
x = self.params
|
||||
x = self._get_params
|
||||
x[matches] = val
|
||||
self.params = x
|
||||
self._set_params(x)
|
||||
else:
|
||||
raise AttributeError, "no parameter matches %s" % name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue