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

Marcus Edel notifications at github.com
Wed Jun 8 20:13:05 EDT 2016


> +
> +  // Link weight.
> +  double aWeight;
> +
> +  // Link innovation ID.
> +  unsigned int aInnovationId;
> + 
> +};
> +
> +/**
> + * This class defines a neuron gene.
> + */
> +class NeuronGene {
> + public:
> +  // Input sum.
> +  double aInput;

Can we write a member function for the input parameter and use that for modifying?

``
double& Input() { return input; }
``
and use it like:
``
linkGene.Input() = 1;
``




---
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#r66364205
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160608/adde0bfa/attachment-0001.html>


More information about the mlpack-git mailing list