<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r70904440">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>&gt; +  void InitPopulation() {
&gt; +    aPopulation = Population(aSeedGenome, aPopulationSize);
&gt; +  }
&gt; +
&gt; +  // Reproduce next generation of population.
&gt; +  void Reproduce() {
&gt; +    // keep best genome.
&gt; +    Genome lastBestGenome = aPopulation.BestGenome();
&gt; +
&gt; +    // Remove stale species.
&gt; +    if (aPopulation.aSpecies.size() &gt; 10) {
&gt; +      RemoveStaleSpecies(aPopulation);
&gt; +    }
&gt; +
&gt; +    // Remove weak genomes in each species.
&gt; +    CullSpecies(aPopulation, aCullSpeciesPercentage);
</pre>
<p>I referred to this implementation which seems performs good on Mario game:<br>
<a href="http://pastebin.com/ZZmSNaHX">http://pastebin.com/ZZmSNaHX</a><br>
And truncating species by 50%, or by only one left are also come from this.<br>
Actually I am now in the progress of reviewing other implementation ideas, such as the neat-python. The NEAT's implementation seems are all quite different for different packages. I am trying to come up with a progress which combines the goodness of different packages.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<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#r70904440">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFAruax5hhQOk-bdIse00HZ17n2tAks5qVs7QgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFOXcG7J9sauwhDzzvrt9qTajZZ4Oks5qVs7QgaJpZM4IwJa6.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#r70904440"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>