mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
bug fix for tie
This commit is contained in:
parent
7ca133977b
commit
cde51766ad
1 changed files with 1 additions and 1 deletions
|
|
@ -473,7 +473,7 @@ class Tie(Parameterized):
|
|||
self._untie_ = None
|
||||
else:
|
||||
self.label_buf = np.zeros((self._highest_parent_.param_array.size,),dtype=np.uint32)
|
||||
self._traverse_param(lambda x:np.put(self.label_buf,xrange(self._highest_parent_._offset_for(x),x.size),x.tie.flat), (self._highest_parent_,), [])
|
||||
self._traverse_param(lambda x:np.put(self.label_buf,xrange(self._highest_parent_._offset_for(x),self._highest_parent_._offset_for(x)+x.size),x.tie.flat), (self._highest_parent_,), [])
|
||||
self.buf_idx = self._highest_parent_._raveled_index_for(self.tied_param)
|
||||
self._untie_ = self.label_buf==0
|
||||
self._untie_[self.buf_idx] = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue