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

Marcus Edel notifications at github.com
Sat Jul 2 18:15:09 EDT 2016


> +      aNumOutput = genome.aNumOutput;
> +      aFitness = genome.aFitness;
> +      aAdjustedFitness = genome.aAdjustedFitness;
> +    }
> +
> +    return *this;
> +  }
> +
> +  // Get genome id.
> +  ssize_t Id() const { return aId; }
> +
> +  // Set genome id.
> +  void Id(ssize_t id) { aId = id; }
> +
> +  // Get input length.
> +  ssize_t NumInput() {

Since the input number of inputs never changed and we don't add another Bias neuron, we could calculate NumInput once. It's a relative simple function, but we call it fairly often.

---
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/554a279b0089e4385dfb40077e578d6ae2a42ece#r69383328
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160702/66ca2817/attachment.html>


More information about the mlpack-git mailing list