Skip to content

Commit

Permalink
fix #216 issue (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
maypink authored Oct 17, 2023
1 parent b49eac1 commit 119ab0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion golem/core/optimisers/populational_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def _extend_population(self, pop: PopulationT, target_pop_size: int) -> Populati
def _update_population(self, next_population: PopulationT, label: Optional[str] = None,
metadata: Optional[Dict[str, Any]] = None):
self.generations.append(next_population)
self._log_to_history(next_population, label, metadata)
if self.requirements.keep_history:
self._log_to_history(next_population, label, metadata)
self._iteration_callback(next_population, self)
self.population = next_population

Expand Down

0 comments on commit 119ab0d

Please sign in to comment.