<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r70910848">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>> + 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);
</pre>
<p>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.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/686/files/48e15c45ab1a9c65dbd8fe3fe6f07e368c965883#r70910848">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFCR9yrJiC95r7VmZ0mHnK0SzlsSWks5qVuTrgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFOpbeGcK8AheFPSMlm-JmFo52LTBks5qVuTrgaJpZM4IwJa6.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/686/files/48e15c45ab1a9c65dbd8fe3fe6f07e368c965883#r70910848"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>