Example #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]
Example #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.inner_pc_pairs = [
     ]  # list of nodes where both parent/child are non-terminal
     self.both_children_terminal = []
Example #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.ancestry = []
		self.processed_nodes_iterations = []
		self.grow_nodes_iterations = []
		self.log_sis_ratio_d ={}
		if cache_tmp:
			self.do_not_grow = False
			self.grow_nodes = [0]
Example #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 = []