[mlpack-git] [mlpack/mlpack] Neural evolution algorithms implementation (CNE, NEAT, HyperNEAT) (#686)
Excalibur
notifications at github.com
Mon Jul 18 01:04:10 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();
> + }
> + }
Oh, sorry, a bug! Revised, thanks!
---
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#r71100690
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160717/274a5544/attachment.html>
More information about the mlpack-git
mailing list