<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r71100671">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>childGenomes.push_back(lastBestGenome);<br>
Yeah, I use this to make sure the fitness will always decrease (at least not increase) during each iteration.<br>
"it's possible that at the time we add the genome it doesn't exist anymore", sorry, but I am not quite clear about the meaning of this.</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#r71100671">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFMe9BhVsmPVotRejXV2L_TsJsQBJks5qWwkKgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFALE1m4QCcE2QX_4auYcpNvj88moks5qWwkKgaJpZM4IwJa6.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#r71100671"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>