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

Marcus Edel notifications at github.com
Sun Jun 26 19:10:38 EDT 2016


> +      }
> +    }
> +  }
> +
> +  void Crossover(Genome& genome1, Genome& genome2, Genome& childGenome) {
> +    if (Species::CompareGenome(genome1, genome2)) {  // genome1 is better
> +      CrossoverLinkAndNeuron(genome1, genome2, childGenome);
> +    } else {
> +      CrossoverLinkAndNeuron(genome2, genome1, childGenome);
> +    }
> +  }
> +
> +  // Measure two genomes' disjoint (including exceed).
> +  // TODO: we can seperate into disjoint and exceed.
> +  // But currently maybe it is enough.
> +  double Disjoint(Genome& genome1, Genome& genome2) {

I agree, it should work for now.

---
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/a605eef0e349b0a08cc1a289c6857240c6ae5e23#r68511951
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160626/4033f6d2/attachment.html>


More information about the mlpack-git mailing list