<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r68509261">src/mlpack/methods/ne/neat.hpp</a>:</p>
<pre style='color:#555'>&gt; +    // No link.
&gt; +    if (genome.aLinkGenes.size() == 0) return;
&gt; +
&gt; +    // Select link to split.
&gt; +    ssize_t linkIdx = mlpack::math::RandInt(0, genome.aLinkGenes.size());
&gt; +    if (!genome.aLinkGenes[linkIdx].Enabled()) return;
&gt; +
&gt; +    genome.aLinkGenes[linkIdx].Enabled(false);
&gt; +
&gt; +    // Check innovation already exist or not.
&gt; +    ssize_t splitLinkInnovId = genome.aLinkGenes[linkIdx].InnovationId();
&gt; +    ssize_t innovIdx = CheckNeuronInnovation(splitLinkInnovId);
&gt; +    if (innovIdx != -1) {
&gt; +      NeuronGene neuronGene(aNeuronInnovations[innovIdx].newNeuronId,
&gt; +                            HIDDEN,
&gt; +                            SIGMOID,  // TODO: make it random??
</pre>
<p>Yeah I agree.</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/74fb4a023ab294c759dca3cb6d7ccb3c46054bab#r68509261">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFHLO3__0vpwszYph_LV2xPJkjsLFks5qPuQ0gaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFPQ7tx53nWReE0HcSRd0nMYbhHabks5qPuQ0gaJpZM4IwJa6.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/74fb4a023ab294c759dca3cb6d7ccb3c46054bab#r68509261"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>