[mlpack-git] [mlpack/mlpack] Neural evolution algorithms implementation (CNE, NEAT, HyperNEAT) (#686)

Excalibur notifications at github.com
Thu Jul 14 21:39:55 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);

My current plan is keep the functions, but when we do the Reproduce(), we need further decision about whether to use it. Organizing these steps in Reproduce() are flexible.

---
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#r70910848
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160714/0aff6afe/attachment.html>


More information about the mlpack-git mailing list