<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'>&gt; +    // Breed children in each species. 
&gt; +    std::vector&lt;double&gt; speciesAverageRank;
&gt; +    CalcSpeciesAverageRank(aPopulation, speciesAverageRank);
&gt; +    //DEBUGGING!!!!!!!!!
&gt; +    printf(&quot;Species average rank are: &quot;);
&gt; +    for (ssize_t s=0; s&lt;speciesAverageRank.size(); ++s) {
&gt; +      std::cout&lt;&lt; speciesAverageRank[s] &lt;&lt; &quot;  &quot;;
&gt; +    }
&gt; +    printf(&quot;\n&quot;);
&gt; +    //DEBUGGING!!!!!!!!!
&gt; +
&gt; +    double totalAverageRank = std::accumulate(speciesAverageRank.begin(), speciesAverageRank.end(), 0);
&gt; +    std::vector&lt;Genome&gt; childGenomes;
&gt; +    for (ssize_t i=0; i&lt;aPopulation.aSpecies.size(); ++i) {
&gt; +      // number of child genomes by this species.
&gt; +      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;">&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#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>