<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r71061475">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>&gt; +      }  
&gt; +    }
&gt; +  }
&gt; +
&gt; +  // Crossover two genome to get one genome.
&gt; +  void Crossover(Genome&amp; genome1, Genome&amp; genome2, Genome&amp; childGenome) {
&gt; +    if (CompareGenome(genome1, genome2)) {  // genome1 is better
&gt; +      CrossoverLinkAndNeuron(genome1, genome2, childGenome);
&gt; +    } else {
&gt; +      CrossoverLinkAndNeuron(genome2, genome1, childGenome);
&gt; +    }
&gt; +  }
&gt; +
&gt; +  // Measure two genomes&#39; disjoint (including exceed).
&gt; +  // NOTICE: we can separate into disjoint and exceed. But currently maybe it is enough.
&gt; +  double Disjoint(Genome&amp; genome1, Genome&amp; genome2) {
</pre>
<p>I plan to change this after NEAT passed Cart Pole problem. As I saw multiple implementations that the parameters for Exceed and Disjoint are the same. Thus, we can keep the current function for now and it won't influence the performance. After that, it can easily be changed.</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/ff45785b8669f82beb38ef5392f48bcdf5c83f6a#r71061475">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFHkyGEefBjfywFvRNkfcLxQVl67Qks5qWG34gaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFC_RIXrlWnS_9_3g8ZzILm94CAldks5qWG34gaJpZM4IwJa6.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/ff45785b8669f82beb38ef5392f48bcdf5c83f6a#r71061475"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>