<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r70911193">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>> + for (ssize_t j=0; j<speciesSize; ++j) {
> + averageRank += genomes.size() - GetGenomeIndex(genomes, population.aSpecies[i].aGenomes[j].Id());
> + }
> + averageRank = averageRank / speciesSize;
> + speciesAverageRank.push_back(averageRank);
> + }
> + }
> +
> + // Remove weak species.
> + void RemoveWeakSpecies(Population& population) {
> + std::vector<double> speciesAverageRank;
> + CalcSpeciesAverageRank(population, speciesAverageRank);
> + double totalAverageRank = std::accumulate(speciesAverageRank.begin(), speciesAverageRank.end(), 0);
> +
> + for (ssize_t i=0; i<population.aSpecies.size(); ++i) {
> + double weak = (std::floor(speciesAverageRank[i] * population.NumSpecies() / totalAverageRank)
</pre>
<p>I am not sure which parameter you mean, the population?</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#r70911193">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFGdgJSeDbcyEDA1wG3lSI8hmkBtyks5qVuYOgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKeZHTa3DWeArdrEUQl83HkR_t7Oks5qVuYOgaJpZM4IwJa6.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#r70911193"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>