<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r71089399">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>&gt;      CullSpeciesToOne(aPopulation);  // NOTICE: I found that this makes XOR test converges fast.
&gt;  
&gt; -    //DEBUGGING!!!!!!!!!
&gt; -    printf(&quot;after, species sizes are: &quot;);
&gt; -    for (ssize_t s=0; s&lt;aPopulation.aSpecies.size(); ++s) {
&gt; -      std::cout&lt;&lt; aPopulation.aSpecies[s].aGenomes.size() &lt;&lt; &quot;  &quot;;
&gt; -    }
&gt; -    printf(&quot;\n&quot;);
&gt; -    //DEBUGGING!!!!!!!!!
&gt; -
&gt;      // Random choose species and breed child until reach population size.
&gt;      childGenomes.push_back(lastBestGenome);
</pre>
<p>We can't just add the lastBestGenome, because it's possible that at the time we add the genome it doesn't exist anymore. Also the population already contains the genome, so we would add the genome twice.</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/fc982b9406838eb9697000481e816165702e8ba9..66b0f4171ab0c6810cf3058e653e48d18c4913be#r71089399">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFBRaPMXyi-J1SxJLQdDuAGp4BpVYks5qWpdYgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFAEr4jcy8jCQTzRjc-xm4C_2SBlFks5qWpdYgaJpZM4IwJa6.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/fc982b9406838eb9697000481e816165702e8ba9..66b0f4171ab0c6810cf3058e653e48d18c4913be#r71089399"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>