[mlpack-git] [mlpack/mlpack] Neural evolution algorithms implementation (CNE, NEAT, HyperNEAT) (#686)

Marcus Edel notifications at github.com
Sun Jul 17 17:17:45 EDT 2016


> +  // Set next genome id.
> +  void NextGenomeId(ssize_t nextGenomeId) { aNextGenomeId = nextGenomeId; }
> +
> +  // Get next genome id.
> +  ssize_t NextGenomeId() const { return aNextGenomeId; }
> +
> +  // Get species number.
> +  ssize_t NumSpecies() const { return aSpecies.size(); }
> +
> +  // Get population size.
> +  ssize_t PopulationSize() const {
> +    ssize_t populationSize = 0;
> +    for (ssize_t i=0; i<aSpecies.size(); ++i) {
> +      populationSize += aSpecies[i].aGenomes.size();
> +    }
> +  }

The method returns with an error if we don't return the `populationSize`.

---
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/66b0f4171ab0c6810cf3058e653e48d18c4913be#r71089723
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160717/ee72e6de/attachment.html>


More information about the mlpack-git mailing list