[mlpack-git] [mlpack/mlpack] NeuralEvolution - implemented gene, genome (#686)
Marcus Edel
notifications at github.com
Sat Jul 2 19:44:20 EDT 2016
> + return true;
> + }
> +
> +
> + // Initialize population.
> + 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) {
I think it's a good idea to provide a parameter for the number of stale 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#r69383800
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160702/f456fd10/attachment.html>
More information about the mlpack-git
mailing list