Ignore:
Timestamp:
02/21/24 17:38:15 (9 months ago)
Author:
Maciej Komosinski
Message:

Initialize more fields in constructors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/evolalg/base/experiment_abc.py

    r1289 r1294  
    1818class ExperimentABC(ABC):
    1919
    20     population_structures = None
    21     hof = []
    22     stats = []
    23     current_generation = 0
    24     time_elapsed = 0
    25 
    26 
    2720    def __init__(self, popsize, hof_size, save_only_best) -> None:
     21        self.population_structures = None
     22        self.stats = []
     23        self.current_generation = 0
     24        self.time_elapsed = 0
     25
    2826        self.hof = HallOfFame(hof_size)
    2927        self.popsize = popsize
Note: See TracChangeset for help on using the changeset viewer.