<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66710148">src/mlpack/methods/ne/population.hpp</a>:</p>
<pre style='color:#555'>&gt; +  // TODO: whether randomize, random range, as parameter or not??
&gt; +  Population(Genome&amp; seedGenome, size_t populationSize) {
&gt; +    aPopulationSize = populationSize;
&gt; +    aBestFitness = -1; // -1 denotes haven&#39;t evaluate yet.
&gt; +
&gt; +    // Create genomes from seed Genome.
&gt; +    for (size_t i=0; i&lt;populationSize; ++i) {
&gt; +      Genome genome = seedGenome;
&gt; +      genome.Id() = i;
&gt; +      aGenomes.push_back(genome);
&gt; +    }
&gt; +
&gt; +    // Randomize genome weights.
&gt; +    for (size_t i=0; i&lt;populationSize; ++i) {
&gt; +      aGenomes[i].RandomizeWeights(-1, 1);  
&gt; +    }
</pre>
<p>But I think whether randomize it or not is a choice (though for ne algorithms, it is required). Rather than putting it in the initialization of a single genome, I think it is more suitable to be put in the InitPopulation() step. How do you think?</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/65f093daf32f6cb353cd6b9304bab88a5e096fdc#r66710148">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFIyWUi1MUEi27la-IfGUSZ3LAt6Gks5qKwSogaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJ5VWWokphZcMm3-6voxsuMKJ4UCks5qKwSogaJpZM4IwJa6.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#r66710148"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>