[mlpack-git] [mlpack/mlpack] CNE algorithm (#753)
Marcus Edel
notifications at github.com
Mon Aug 29 17:54:31 EDT 2016
> + Parameters params;
> + params.speciesSize = 500;
> + params.mutateRate = 0.1;
> + params.mutateSize = 0.02;
> + params.elitePercentage = 0.2;
> + params.maxGeneration = 5000;
> +
> + // Construct seed genome for xor task.
> + int id = 0;
> + int numInput = 3;
> + int numOutput = 1;
> + double fitness = -1;
> + std::vector<NeuronGene> neuronGenes;
> + std::vector<LinkGene> linkGenes;
> +
> + NeuronGene inputGene1(0, INPUT, LINEAR, 0, std::vector<double>(), 0, 0);
Do you think, we could set a default argument for the ``coordinate``parameter. That way we don't have to specify ``std::vector<double>()`` every time we create a new NeuronGene.
--
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/753/files/44f44cd14f046539b92395ada8ca4bf184ea4f93#r76695131
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160829/a893933c/attachment.html>
More information about the mlpack-git
mailing list