<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r68511951">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>> + }
> + }
> + }
> +
> + void Crossover(Genome& genome1, Genome& genome2, Genome& childGenome) {
> + if (Species::CompareGenome(genome1, genome2)) { // genome1 is better
> + CrossoverLinkAndNeuron(genome1, genome2, childGenome);
> + } else {
> + CrossoverLinkAndNeuron(genome2, genome1, childGenome);
> + }
> + }
> +
> + // Measure two genomes' disjoint (including exceed).
> + // TODO: we can seperate into disjoint and exceed.
> + // But currently maybe it is enough.
> + double Disjoint(Genome& genome1, Genome& genome2) {
</pre>
<p>I agree, it should work for now.</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/a605eef0e349b0a08cc1a289c6857240c6ae5e23#r68511951">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFEL4ngeebMs_-tuEh3IeSSi-By2Qks5qPwbugaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFN4jEIqBPNt2SgY-sR_4Zvj-qmXVks5qPwbugaJpZM4IwJa6.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#r68511951"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>