<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66367462">src/mlpack/methods/ne/genome.hpp</a>:</p>
<pre style='color:#555'>&gt; +    return aDepth;
&gt; +  }
&gt; +
&gt; +  // Set neurons&#39; input and output to zero.
&gt; +  void Flush() {
&gt; +    for (unsigned int i=0; i&lt;aNeuronGenes.size(); ++i) {
&gt; +      aNeuronGenes[i].aActivation = 0;
&gt; +      aNeuronGenes[i].aInput = 0;
&gt; +    }
&gt; +  }
&gt; +
&gt; +  // Activate genome. The last dimension of input is always 1 for bias. 0 means no bias.
&gt; +  void Activate(std::vector&lt;double&gt;&amp; input) {
&gt; +    assert(input.size() == aNumInput);
&gt; +    Flush();
&gt; +
</pre>
<p><a href="https://github.com/zoq" class="user-mention">@zoq</a> Yeah, seems reasonable. I add the Flush() step to make sure it will be correct for activation. But I also think it seems not a required step.</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/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66367462">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFGhrLfqizLdZsNaJDkuVJVV4b3npks5qJ2RlgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJ2tCm589YTnk5UtphoHDQHACgE4ks5qJ2RlgaJpZM4IwJa6.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/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66367462"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>