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

Marcus Edel notifications at github.com
Wed Jun 8 20:17:23 EDT 2016


> +  void Depth(unsigned int depth) { aDepth = depth; }
> +
> +  // Get fitness.
> +  double Fitness() const { return aFitness; }
> +
> +  // Set fitness.
> +  void Fitness(double fitness) { aFitness = fitness; }
> +
> +  // Get neuron number.
> +  unsigned int NumNeuron() const {
> +    return static_cast<unsigned int>(aNeuronGenes.size());
> +  }
> +  
> +  // Get link number.
> +  unsigned int NumLink() const {
> +    return static_cast<unsigned int>(aLinkGenes.size());

No need to cast if we are going to use size_t.

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


More information about the mlpack-git mailing list