mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
bug fix: tie framework
This commit is contained in:
parent
0cef82db29
commit
7d5b4f2769
1 changed files with 24 additions and 23 deletions
|
|
@ -477,7 +477,8 @@ class Tie(Parameterized):
|
||||||
self.buf_idx = self._highest_parent_._raveled_index_for(self.tied_param)
|
self.buf_idx = self._highest_parent_._raveled_index_for(self.tied_param)
|
||||||
self._untie_ = self.label_buf==0
|
self._untie_ = self.label_buf==0
|
||||||
self._untie_[self.buf_idx] = True
|
self._untie_[self.buf_idx] = True
|
||||||
self.tie_pairs = np.empty(((self.label_buf>0).sum()-self.tied_param.size,2),dtype=np.uint32)
|
self.tie_pairs = np.empty(((np.logical_not(self._untie_)).sum(),2),dtype=np.uint32)
|
||||||
|
if self.tie_pairs.size>0:
|
||||||
try:
|
try:
|
||||||
from scipy import weave
|
from scipy import weave
|
||||||
self._label_to_idx = np.zeros((self.tied_param.tie.max()+1,),dtype=np.int32)
|
self._label_to_idx = np.zeros((self.tied_param.tie.max()+1,),dtype=np.int32)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue