<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66363623">src/mlpack/methods/ne/gene.hpp</a>:</p>
<pre style='color:#555'>> +
> + // Destructor.
> + ~LinkGene() {}
> +
> + // Get aFromNeuronId.
> + unsigned int FromNeuronId() const { return aFromNeuronId; }
> +
> + // Get aToNeuronId.
> + unsigned int ToNeuronId() const { return aToNeuronId; }
> +
> + // Get aInnovationId.
> + unsigned int InnovationId() const { return aInnovationId; }
> +
> + // Set aWeight.
> + void Weight(double weight) { aWeight = weight; }
> +
</pre>
<p>Can you use:</p>
<p><code>double& Weight() { return weight; }</code></p>
<p>instead of a setter function that takes an argument, to be consistent with the rest of mlpack.</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/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66363623">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFAiZj4vd-2_lHs_1gcnWlSxA4-rsks5qJ1kagaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLFm6RzK9UFpIL_0LkjZRwR2rcc2ks5qJ1kagaJpZM4IwJa6.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#r66363623"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>