<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66710071">src/mlpack/methods/ne/population.hpp</a>:</p>
<pre style='color:#555'>> + // TODO: whether randomize, random range, as parameter or not??
> + Population(Genome& seedGenome, size_t populationSize) {
> + aPopulationSize = populationSize;
> + aBestFitness = -1; // -1 denotes haven't evaluate yet.
> +
> + // Create genomes from seed Genome.
> + for (size_t i=0; i<populationSize; ++i) {
> + Genome genome = seedGenome;
> + genome.Id() = i;
> + aGenomes.push_back(genome);
> + }
> +
> + // Randomize genome weights.
> + for (size_t i=0; i<populationSize; ++i) {
> + aGenomes[i].RandomizeWeights(-1, 1);
> + }
</pre>
<p><a href="https://github.com/zoq" class="user-mention">@zoq</a> Yes, I thought about it and put a TODO in my code. I think it should be configurable, and plan to revise it.</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/65f093daf32f6cb353cd6b9304bab88a5e096fdc#r66710071">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFMHn8pm7tqkIMzrljxHioL1a6SP8ks5qKwM5gaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCy7e8EJ6BqCjoP3lhKIbkEoENIvks5qKwM5gaJpZM4IwJa6.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/65f093daf32f6cb353cd6b9304bab88a5e096fdc#r66710071"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>