<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66365641">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>If we reset the activation at the beginning, we can't use the activation at time  (t - 1) from a unit that has a recurrent connection, right? I'm not sure we have to reset the activation at all, we could just overwrite the existing.</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#r66365641">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFE2OMjqY52u4rf8Uhr1QIhzcb8t1ks5qJ165gaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFEXBiORJ_z6V99LyOUkQWmZvGH72ks5qJ165gaJpZM4IwJa6.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#r66365641"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>