[mlpack-git] [mlpack/mlpack] Neural evolution algorithms implementation (CNE, NEAT, HyperNEAT) (#686)
Marcus Edel
notifications at github.com
Thu Jul 14 21:45:49 EDT 2016
> + void InitPopulation() {
> + aPopulation = Population(aSeedGenome, aPopulationSize);
> + }
> +
> + // Reproduce next generation of population.
> + void Reproduce() {
> + // keep best genome.
> + Genome lastBestGenome = aPopulation.BestGenome();
> +
> + // Remove stale species.
> + if (aPopulation.aSpecies.size() > 10) {
> + RemoveStaleSpecies(aPopulation);
> + }
> +
> + // Remove weak genomes in each species.
> + CullSpecies(aPopulation, aCullSpeciesPercentage);
Sounds good, since there is a parameter (aCullSpeciesPercentage) it's super easy to disable the function.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/686/files/48e15c45ab1a9c65dbd8fe3fe6f07e368c965883#r70911258
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160714/0e52393e/attachment.html>
More information about the mlpack-git
mailing list