(self, nodes)
generate node summaries for hist subtraction
generate node summaries for hist subtraction
generate node summaries for hist subtraction
def _update_node_info(self, nodes):
        """
        generate node summaries for hist subtraction
        """
        if nodes is None:
            raise ValueError('node list should not be None if histogram subtraction is enabled')
        self._cur_to_split_node_info = {}
        for node in nodes:
            node_id = node.id
            self._cur_to_split_node_info[node_id] = {'pid': node.parent_nodeid, 'is_left_node': node.is_left_node}
def _update_node_info ( self , nodes ) : if nodes is None : raise ValueError ( 'node list should not be None if histogram subtraction is enabled' ) self . _cur_to_split_node_info = { } for node in nodes : node_id = node . id self . _cur_to_split_node_info [ node_id ] = { 'pid' : node . parent_nodeid , 'is_left_node' : node . is_left_node }