<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r70638909">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>&gt; +
&gt; +    for (ssize_t i=0; i&lt;genome2.NumLink(); ++i) {
&gt; +      ssize_t innovId = genome2.aLinkGenes[i].InnovationId();
&gt; +      bool linkContainedInGenome1 = genome1.ContainLink(innovId);
&gt; +      if (!linkContainedInGenome1) {
&gt; +        ++numDisjoint;
&gt; +      }
&gt; +    }
&gt; +
&gt; +    ssize_t largerGenomeSize = std::max(genome1.NumLink(), genome2.NumLink());
&gt; +    double deltaD = numDisjoint / largerGenomeSize;
&gt; +    return deltaD; 
&gt; +  }
&gt; +
&gt; +  // Measure two genomes&#39; weight difference.
&gt; +  double WeightDiff(Genome&amp; genome1, Genome&amp; genome2) {
</pre>
<p>We can integrate the weight difference into the function I proposed  above.</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#r70638909">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFN8gXfcEU8kOPxCFkv0SDEqTvhVzks5qVPnUgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFHEgo8AI0CWr6Z6DI1LAj2a9N-0zks5qVPnUgaJpZM4IwJa6.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#r70638909"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>