[mlpack-git] [mlpack/mlpack] NeuralEvolution - implemented gene, genome (#686)

Marcus Edel notifications at github.com
Sat Jul 2 19:44:56 EDT 2016


> +  // Reproduce next generation of population.
> +  void Reproduce() {
> +    // keep best genome.
> +    Genome lastBestGenome = aPopulation.BestGenome();
> +
> +    // Remove stale species.
> +    if (aPopulation.aSpecies.size() > 10) {
> +      RemoveStaleSpecies(aPopulation);
> +    }
> +    ////printf("hehe 0\n"); // DEBUG
> +    // Remove weak genomes in each species.
> +    CullSpecies(aPopulation, aCullSpeciesPercentage);
> +    ////printf("hehe 1\n"); // DEBUG
> +
> +    // Remove weak species.
> +    if (aPopulation.aSpecies.size() > 10) {

As for the number of stale species, we should also provide a parameter for the number of weak species.

---
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/554a279b0089e4385dfb40077e578d6ae2a42ece#r69383804
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160702/b06a9caa/attachment.html>


More information about the mlpack-git mailing list