gaft.plugin_interfaces.analysis¶
-
class
gaft.plugin_interfaces.analysis.
OnTheFlyAnalysis
¶ Bases:
object
Class for providing an interface to easily extend and customize the behavior of the on-the-fly analysis functionality of gaft.
Attribute:
-
finalize
(population, engine)¶ Called after the iteration to allow for custom finalization and post-processing of the collected data.
Parameters: - population (Population) – The up to date population of the iteration.
- engine (gaft.engine.GAEngine) – The current GAEngine where the analysis is running.
-
register_step
(g, population, engine)¶ Function called in each iteration step.
Parameters: - g (int) – Current generation number.
- population (Population) – The up to date population of the iteration.
- engine (gaft.engine.GAEngine) – The current GAEngine where the analysis is running.
-
setup
(ng, engine)¶ Function called right before the start of genetic algorithm main iteration to allow for custom setup of the analysis object.
Parameters: - ng (int) – The number of generation.
- engine (gaft.engine.GAEngine) – The current GAEngine where the analysis is running.
-