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

Excalibur notifications at github.com
Sat Jul 16 13:20:35 EDT 2016


> +  std::vector<NeuronGene> neuronGenes;
> +  std::vector<LinkGene> linkGenes;
> +
> +  NeuronGene inputGene1(0, INPUT, LINEAR, 0, 0, 0);
> +  NeuronGene inputGene2(1, INPUT, LINEAR, 0, 0, 0);
> +  NeuronGene biasGene(2, BIAS, LINEAR, 0, 0, 0);
> +  NeuronGene outputGene(3, OUTPUT, SIGMOID, 1, 0, 0);
> +  NeuronGene hiddenGene(4, HIDDEN, SIGMOID, 0.5, 0, 0);
> +
> +  neuronGenes.push_back(inputGene1);
> +  neuronGenes.push_back(inputGene2);
> +  neuronGenes.push_back(biasGene);
> +  neuronGenes.push_back(outputGene);
> +  neuronGenes.push_back(hiddenGene);
> +
> +  LinkGene link1(0, 3, 0, 1, true);

Oh yeah! Right, revised it!

2016-07-16 11:15 GMT-06:00 Marcus Edel <notifications at github.com>:

> In src/mlpack/tests/ne_test.cpp
> <https://github.com/mlpack/mlpack/pull/686#discussion_r71069041>:
>
> > +  std::vector<NeuronGene> neuronGenes;
> > +  std::vector<LinkGene> linkGenes;
> > +
> > +  NeuronGene inputGene1(0, INPUT, LINEAR, 0, 0, 0);
> > +  NeuronGene inputGene2(1, INPUT, LINEAR, 0, 0, 0);
> > +  NeuronGene biasGene(2, BIAS, LINEAR, 0, 0, 0);
> > +  NeuronGene outputGene(3, OUTPUT, SIGMOID, 1, 0, 0);
> > +  NeuronGene hiddenGene(4, HIDDEN, SIGMOID, 0.5, 0, 0);
> > +
> > +  neuronGenes.push_back(inputGene1);
> > +  neuronGenes.push_back(inputGene2);
> > +  neuronGenes.push_back(biasGene);
> > +  neuronGenes.push_back(outputGene);
> > +  neuronGenes.push_back(hiddenGene);
> > +
> > +  LinkGene link1(0, 3, 0, 1, true);
>
> Maybe I missed something but I think each link should have a different
> innovation number.
>
>> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/mlpack/mlpack/pull/686/files/fc982b9406838eb9697000481e816165702e8ba9#r71069041>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AD9tIX9w--WKopYPE34NivvWMlbI_phgks5qWRGlgaJpZM4IwJa6>
> .
>


---
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/fc982b9406838eb9697000481e816165702e8ba9#r71069153
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160716/3df93a0b/attachment-0001.html>


More information about the mlpack-git mailing list