<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r69383340">src/mlpack/methods/ne/genome.hpp</a>:</p>
<pre style='color:#555'>> +
> + // Get input length.
> + ssize_t NumInput() {
> + ssize_t numInput = 0;
> + for (ssize_t i=0; i<aNeuronGenes.size(); ++i) {
> + if (aNeuronGenes[i].Type() == INPUT || aNeuronGenes[i].Type() == BIAS)
> + ++numInput;
> + }
> + return numInput;
> + }
> +
> + // Set input length.
> + void NumInput(ssize_t numInput) { aNumInput = numInput; }
> +
> + // Get output length.
> + ssize_t NumOutput() {
</pre>
<p>The number of output neurons never changed, so we could minimize the overhead here.</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/554a279b0089e4385dfb40077e578d6ae2a42ece#r69383340">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFNTxChy4lAjNUAstMVINYKAM7myLks5qRuMxgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJqO5q6-F58yztT8_R_sYxCRSPquks5qRuMxgaJpZM4IwJa6.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/554a279b0089e4385dfb40077e578d6ae2a42ece#r69383340"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>