<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r68503931">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>NEAT doesn't change the activation function, but it could be interesting to see if that would increase the performance. However, we have to find a good way, to abstract that functionality from the rest of the code. I think, it's good for now to go with a static activation function.</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#r68503931">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFJyAc0Mk7Mj31ptJKXTYDt3pWVBoks5qPoz9gaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFMrj2fmstVqL9YTVJ-e2t-Ipofl7ks5qPoz9gaJpZM4IwJa6.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#r68503931"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>