<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r68511889">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>&gt; +    genome.AddLink(outputLink);
&gt; +  }
&gt; +
&gt; +  // Crossover link weights.
&gt; +  // NOTICE: assume momGenome is the better genome.
&gt; +  // NOTICE: assume childGenome is empty.
&gt; +  void CrossoverLinkAndNeuron(Genome&amp; momGenome, Genome&amp; dadGenome, Genome&amp; childGenome) {
&gt; +    // Add input and output neuron genes to child genome.
&gt; +    for (ssize_t i=0; i&lt;(momGenome.NumInput() + momGenome.NumOutput()); ++i) {
&gt; +      childGenome.aNeuronGenes.push_back(momGenome.aNeuronGenes[i]);
&gt; +    }
&gt; +
&gt; +    // Iterate to add link genes and neuron genes to child genome.
&gt; +    for (ssize_t i=0; i&lt;momGenome.NumLink(); ++i) {
&gt; +      ssize_t innovId = momGenome.aLinkGenes[i].InnovationId();
&gt; +      ssize_t idx = dadGenome.GetLinkIndex(innovId);
</pre>
<p>I like the names of the genomes.</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/a605eef0e349b0a08cc1a289c6857240c6ae5e23#r68511889">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFLnSNpJ4K-CW1m8LmCmofhPFZF4Gks5qPwYbgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCuSOKfhWedkkmb1HIW1iuWIM3D2ks5qPwYbgaJpZM4IwJa6.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/a605eef0e349b0a08cc1a289c6857240c6ae5e23#r68511889"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>