<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r71072586">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>&gt; +  // Sort genomes by fitness. Smaller fitness is better and put first.
&gt; +  void SortGenomes(std::vector&lt;Genome&gt;&amp; genomes) {
&gt; +    std::sort(genomes.begin(), genomes.end(), Species::CompareGenome);
&gt; +  }
&gt; +
&gt; +  // Get genome index in a genomes vector.
&gt; +  ssize_t GetGenomeIndex(std::vector&lt;Genome&gt;&amp; genomes, ssize_t id) {
&gt; +    for (ssize_t i=0; i&lt;genomes.size(); ++i) {
&gt; +      if (genomes[i].Id() == id)
&gt; +        return i;
&gt; +    }
&gt; +    return -1;
&gt; +  }
&gt; +
&gt; +  // Calculate species&#39; average rank in population by fitness. Bigger is better.
&gt; +  void CalcSpeciesAverageRank(Population&amp; population, std::vector&lt;double&gt;&amp; speciesAverageRank) {
</pre>
<p>Don't we have to use the fitness of the genomes to calculate the rank?</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#r71072586">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFAQlfowYa2KqL1_TH9pTysyz21ujks5qWVbogaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFGbbOjRkAMvnrI3BW50-D6j2u-ZAks5qWVbogaJpZM4IwJa6.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#r71072586"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>