We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
evaluated_individuals["Generation"].max()
1 parent 96c53f4 commit 3e20bd8Copy full SHA for 3e20bd8
tpot/evolvers/base_evolver.py
@@ -421,7 +421,7 @@ def __init__( self,
421
self.population = pickle.load(open(self.population_file, "rb"))
422
423
if len(self.population.evaluated_individuals)>0 and "Generation" in self.population.evaluated_individuals.columns:
424
- self.generation = self.population.evaluated_individuals['Generation'].max() + 1 #TODO check if this is empty?
+ self.generation = int(self.population.evaluated_individuals['Generation'].max()) + 1 #TODO check if this is empty?
425
426
init_names = self.objective_names
427
if self.budget_range is not None:
0 commit comments