Пример #1
0
    def __init__(self, nth_gen, n_plots=4) -> None:
        super().__init__()
        self.nth_gen = nth_gen
        self.term = MultiObjectiveSpaceToleranceTerminationWithRenormalization(
            n_last=30, all_to_current=True, sliding_window=False)

        self.hist = []
        self.n_hist = n_plots
Пример #2
0
    def __init__(self,
                 delta_gen,
                 n_plots=4,
                 only_if_n_plots=False,
                 key_press=True,
                 **kwargs) -> None:

        super().__init__(**kwargs)
        self.delta_gen = delta_gen
        self.key_press = key_press
        self.only_if_n_plots = only_if_n_plots
        self.term = MultiObjectiveSpaceToleranceTerminationWithRenormalization(
            n_last=100000, all_to_current=True, sliding_window=False)
        self.hist = []
        self.n_plots = n_plots