Neat.PopulationManagement

Summary

Functions

Given Neat, species that have not improved for opts.dropoff_age time steps are dropped

Given Neat, only the best opts.survival_ratio portion of the species is kept (rounding up to the nearest number of members)

Given Neat, the best neural network is saved as neat.best as an {ann, fitness} tuple. If the population is empty, the previously best ANN is saved as the new seed

Functions

kill_dead_species(neat)

Given Neat, species that have not improved for opts.dropoff_age time steps are dropped.

kill_lessers(neat)

Given Neat, only the best opts.survival_ratio portion of the species is kept (rounding up to the nearest number of members).

store_best_ann(neat)

Given Neat, the best neural network is saved as neat.best as an {ann, fitness} tuple. If the population is empty, the previously best ANN is saved as the new seed.