Exemple #1
0
 def __init__(self, train_ids=np.arange(0, dtype='int'), param=empty(), settings=empty(), cache_tmp={}):
     Tree.__init__(self, train_ids, param, settings, cache_tmp)
     self.ancestry = []
     self.nodes_processed_itr = []
     self.grow_nodes_itr = []
     self.log_sis_ratio_d = {}
     if cache_tmp:
         self.do_not_grow = False
         self.grow_nodes = [0]
Exemple #2
0
 def __init__(self,
              train_ids=np.arange(0, dtype='int'),
              param=empty(),
              settings=empty(),
              cache_tmp={}):
     Tree.__init__(self, train_ids, param, settings, cache_tmp)
     self.ancestry = []
     self.nodes_processed_itr = []
     self.grow_nodes_itr = []
     self.log_sis_ratio_d = {}
     if cache_tmp:
         self.do_not_grow = False
         self.grow_nodes = [0]
Exemple #3
0
 def __init__(self, train_ids=np.arange(0, dtype='int'), param=empty(), settings=empty(), cache_tmp={}):
     Tree.__init__(self, train_ids, param, settings, cache_tmp)
     self.inner_pc_pairs = []       # list of nodes where both parent/child are non-terminal
     self.both_children_terminal = []
Exemple #4
0
 def __init__(self, train_ids=np.arange(0, dtype='int'), param=empty(), settings=empty(), cache_tmp={}):
     Tree.__init__(self, train_ids, param, settings, cache_tmp)
     self.inner_pc_pairs = []       # list of nodes where both parent/child are non-terminal
     self.both_children_terminal = []