<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r69383794">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>&gt; +  bool BreedChild(Species&amp; species, Genome&amp; childGenome, double crossoverProb) {
&gt; +    ////printf(&quot;breed 1\n&quot;);
&gt; +    double p = mlpack::math::Random();
&gt; +    ssize_t speciesSize = species.aGenomes.size();
&gt; +    ////printf(&quot;species size is %d \n&quot;, speciesSize);
&gt; +    ////printf(&quot;breed 2\n&quot;);
&gt; +    if (speciesSize == 0)
&gt; +      return false;
&gt; +
&gt; +    if (p &lt; crossoverProb) {
&gt; +      ssize_t idx1 = mlpack::math::RandInt(0, speciesSize);
&gt; +      ssize_t idx2 = mlpack::math::RandInt(0, speciesSize);
&gt; +      ////printf(&quot;idx1 is %d\n&quot;, idx1);
&gt; +      ////printf(&quot;idx2 is %d\n&quot;, idx2);
&gt; +      ////printf(&quot;breed 3\n&quot;);
&gt; +      Crossover(species.aGenomes[idx1], species.aGenomes[idx2], childGenome);
</pre>
<p>Is it possible to do a crossover using the same 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/554a279b0089e4385dfb40077e578d6ae2a42ece#r69383794">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFFzSHlNREa6KnAvxkzH-5ZJHt_zuks5qRvebgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFIpxNhjB2Gjl43Z6WlBtuwRS9eNuks5qRvebgaJpZM4IwJa6.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/554a279b0089e4385dfb40077e578d6ae2a42ece#r69383794"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>