def __init__(self, strategy): Analyzer.__init__(self, strategy) self.logger = self.config.get_logger("BEST") self._min = None self._cv = None self._pareto = None self._pareto_front = [] # this is a heapq, sorted by result.fx
def __init__(self, strategy): Analyzer.__init__(self, strategy) # split, if there are more than this number of points in the box self.leafs = [] self._id = 0 # block id self.logger = self.config.get_logger('SPLIT') # , 10) self.max_eval = self.config.max_eval # _new_result used to signal get_leaf and others when there # are updates regarding box/split/leaf status from threading import Condition self._new_result = Condition()
def __init__(self, max_depth=5): Analyzer.__init__(self) self.max_depth = max_depth self.boxes = defaultdict(Box) for depth in range(self.max_depth): self.boxes[depth] = dict()
def __init__(self, strategy): Analyzer.__init__(self, strategy)