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

Marcus Edel notifications at github.com
Wed Jun 8 20:16:00 EDT 2016


> +
> +namespace mlpack {
> +namespace ne {
> +
> +/**
> + * This class defines a genome.
> + # A genome is consist of a group of genes.
> + */
> +class Genome {
> + public:
> +  // Default constructor.
> +  Genome() {}
> +  
> +  // Parametric constructor.
> +  Genome(unsigned int id,
> +  	     std::vector<NeuronGene> neuronGenes,

I think it would be a good idea to use a reference here to avoid copying the object:

``
Genome(unsigned int id, const std::vector<NeuronGene>& neuronGenes, ...)
``

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


More information about the mlpack-git mailing list