<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'>> CullSpeciesToOne(aPopulation); // NOTICE: I found that this makes XOR test converges fast.
>
> - //DEBUGGING!!!!!!!!!
> - printf("after, species sizes are: ");
> - for (ssize_t s=0; s<aPopulation.aSpecies.size(); ++s) {
> - std::cout<< aPopulation.aSpecies[s].aGenomes.size() << " ";
> - }
> - printf("\n");
> - //DEBUGGING!!!!!!!!!
> -
> // Random choose species and breed child until reach population size.
> 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;">—<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>