<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'>> + // No link.
> + if (genome.aLinkGenes.size() == 0) return;
> +
> + // Select link to split.
> + ssize_t linkIdx = mlpack::math::RandInt(0, genome.aLinkGenes.size());
> + if (!genome.aLinkGenes[linkIdx].Enabled()) return;
> +
> + genome.aLinkGenes[linkIdx].Enabled(false);
> +
> + // Check innovation already exist or not.
> + ssize_t splitLinkInnovId = genome.aLinkGenes[linkIdx].InnovationId();
> + ssize_t innovIdx = CheckNeuronInnovation(splitLinkInnovId);
> + if (innovIdx != -1) {
> + NeuronGene neuronGene(aNeuronInnovations[innovIdx].newNeuronId,
> + HIDDEN,
> + SIGMOID, // TODO: make it random??
</pre>
<p>Yeah I agree.</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/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>