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

Marcus Edel notifications at github.com
Sat Jul 2 18:16:17 EDT 2016


> +
> +  // Get input length.
> +  ssize_t NumInput() {
> +    ssize_t numInput = 0;
> +    for (ssize_t i=0; i<aNeuronGenes.size(); ++i) {
> +      if (aNeuronGenes[i].Type() == INPUT || aNeuronGenes[i].Type() == BIAS)
> +        ++numInput;
> +    }
> +    return numInput;
> +  }
> +
> +  // Set input length.
> +  void NumInput(ssize_t numInput) { aNumInput = numInput; }
> +
> +  // Get output length.
> +  ssize_t NumOutput() {

The number of output neurons never changed, so we could minimize the overhead here.

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


More information about the mlpack-git mailing list