[mlpack-git] [mlpack/mlpack] NeuralEvolution - implemented gene, genome (#686)

Marcus Edel notifications at github.com
Wed Jun 8 20:06:50 EDT 2016


> +
> +  // 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; }
> +

Can you use:

``double& Weight() { return weight; }``

instead of a setter function that takes an argument, to be consistent with the rest of mlpack.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/686/files/3c8aa62b951f029b3883e9baef1ea556ef5af2d3#r66363623
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160608/1ab0de61/attachment.html>


More information about the mlpack-git mailing list