Implemented save_data flag.

This commit is contained in:
SimpleArt
2021-05-24 18:15:49 -04:00
committed by GitHub
parent fbf7c9bf61
commit 4248739de8

View File

@ -93,6 +93,7 @@ class GA(Attributes):
self.sort_by_best_fitness() self.sort_by_best_fitness()
# Save the population to the database # Save the population to the database
if self.save_data:
self.save_population() self.save_population()
# Adapt the ga if the generation times the adapt rate # Adapt the ga if the generation times the adapt rate