<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66710199">src/mlpack/methods/ne/population.hpp</a>:</p>
<pre style='color:#555'>> +class Population {
> + public:
> + // Genomes.
> + std::vector<Genome> aGenomes;
> +
> + // Parametric constructor.
> + // 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);
</pre>
<p>Oh! Got it, good idea!</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#r66710199">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFEf5VZua4afl0LNP_fJcQJv13e68ks5qKwWsgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJZLRQBIbjTZZ3YK-uJaK8EmoyoAks5qKwWsgaJpZM4IwJa6.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#r66710199"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>