[mlpack-git] [mlpack/mlpack] CNE algorithm (#753)

Excalibur notifications at github.com
Sun Aug 7 17:34:18 EDT 2016


> +#include "species.hpp"
> +#include "tasks.hpp"
> +#include "parameters.hpp"
> +
> +namespace mlpack {
> +namespace ne {
> +
> +/**
> + * This class implements Conventional Neuro-evolution (CNE): weight
> + * evolution on topologically fixed neural networks.
> + */
> +template<typename TaskType>
> +class CNE {
> + public:
> +  // Parametric constructor.
> +  CNE(TaskType task, Genome& seedGenome, Parameters& params) {

I think for algorithms the parameters are a lot. Users can set parameter by construct an Parameters object without put them into a constructor function in a specific sequence. And this also makes the algorithm constructor be concise. If we have more parameters in the future, we just add new member for Parameters class, no need to change the function headers of constructors. Besides, different NE algorithm will have similar functions for constructor.

---
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/10b99ab5c6e8d2836d231fa60a898cc03f7d9192#r73809578
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160807/9bb1c7bd/attachment-0001.html>


More information about the mlpack-git mailing list