<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'>> + // 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>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;">—<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>