<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r70906305">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>> + // Breed children in each species.
> + std::vector<double> speciesAverageRank;
> + CalcSpeciesAverageRank(aPopulation, speciesAverageRank);
> + //DEBUGGING!!!!!!!!!
> + printf("Species average rank are: ");
> + for (ssize_t s=0; s<speciesAverageRank.size(); ++s) {
> + std::cout<< speciesAverageRank[s] << " ";
> + }
> + printf("\n");
> + //DEBUGGING!!!!!!!!!
> +
> + double totalAverageRank = std::accumulate(speciesAverageRank.begin(), speciesAverageRank.end(), 0);
> + std::vector<Genome> childGenomes;
> + for (ssize_t i=0; i<aPopulation.aSpecies.size(); ++i) {
> + // number of child genomes by this species.
> + ssize_t numBreed = std::floor(speciesAverageRank[i] * aPopulationSize / totalAverageRank) - 1;
</pre>
<p>That's the right position, I would go with offspring here.</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#r70906305">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFPl1LwzwgkTjen7iPBLf2qBQ4TPmks5qVtSBgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFA0i7cBuPl1LjEsfZhJuXyGdmIRNks5qVtSBgaJpZM4IwJa6.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#r70906305"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>