pyneat.reporting module¶
Additional reporters (on top of what are offered by NEAT-Python) that are triggered on particular events.
-
class
pyneat.reporting.
LogFileReporter
(filename, log_level=20, show_species_detail=True)[source]¶ Bases:
neat.reporting.BaseReporter
Write the same information as the StdOutReporter, but instead of printing to standard out, the outputs are written to a log file.
-
log_level
¶ The log level (either DEBUG, INFO, WARNING, ERROR, or CRITICAL). Note: All LogFileReporter logs are INFO level.
Type: logging.level
-
end_generation
(config, population, species_set)[source]¶ The log message to write when a generation is ended.
Parameters: - config (CustomConfig) – The global configuration settings for the entire algorithm.
- population (dict) – The population of individuals. A dictionary of genome key, genome pairs.
- species_set (SpeciesSet) – The speciation scheme for dividing the population into species.
-
found_solution
(config, generation, best)[source]¶ The log message to write after a solution has been found.
-
post_evaluate
(config, population, species, best_genome)[source]¶ The log message to write after evaluating the fitness of the population.
Parameters: - config (CustomConfig) – The global configuration settings for the entire algorithm.
- population (dict) – The population of individuals. A dictionary of genome key, genome pairs.
- species (SpeciesSet) – The speciation scheme for dividing the population into species.
- best_genome (Genome) – The best genome from the population.
-