[mlpack-git] [mlpack/mlpack] Neural evolution algorithms implementation (CNE, NEAT, HyperNEAT) (#686)
Marcus Edel
notifications at github.com
Wed Jul 13 10:44:36 EDT 2016
> +
> + for (ssize_t i=0; i<genome2.NumLink(); ++i) {
> + ssize_t innovId = genome2.aLinkGenes[i].InnovationId();
> + bool linkContainedInGenome1 = genome1.ContainLink(innovId);
> + if (!linkContainedInGenome1) {
> + ++numDisjoint;
> + }
> + }
> +
> + ssize_t largerGenomeSize = std::max(genome1.NumLink(), genome2.NumLink());
> + double deltaD = numDisjoint / largerGenomeSize;
> + return deltaD;
> + }
> +
> + // Measure two genomes' weight difference.
> + double WeightDiff(Genome& genome1, Genome& genome2) {
We can integrate the weight difference into the function I proposed above.
---
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/ff45785b8669f82beb38ef5392f48bcdf5c83f6a#r70638909
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160713/16773ec0/attachment.html>
More information about the mlpack-git
mailing list