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

Marcus Edel notifications at github.com
Wed Jun 8 19:49:56 EDT 2016


> +    SIGMOID = 0,
> +    TANH,
> +    LINEAR,
> +    RELU,
> +};
> +
> +/**
> + * This class defines a link gene.
> + */
> +class LinkGene {
> + public:
> +  // Default constructor.
> +  LinkGene() {}
> +
> +  // Parametric constructor.
> +  LinkGene(unsigned int fromNeuronId,

Can you use ```size_t``` instead of ```unsigned int```. It's guaranteed to be big enough to hold the size of the biggest object on your system. Also, I would recommend to use ```const```here, so ```const size_t fromNeuronId```.

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


More information about the mlpack-git mailing list