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

Ryan Curtin notifications at github.com
Sun Aug 7 18:11:28 EDT 2016


> +  void NumInput(int numInput) { aNumInput = numInput; }
> +
> +  // Get output length.
> +  int NumOutput() { return aNumOutput; }
> +
> +  // Set output length.
> +  void NumOutput(int numOutput) { aNumOutput = numOutput; }
> +
> +  // Set fitness.
> +  void Fitness(double fitness) { aFitness = fitness; }
> +
> +  // Get fitness.
> +  double Fitness() const { return aFitness; }
> +
> +  // Get neuron number.
> +  int NumNeuron() const {

Yeah, we use new lines for opening braces.  In this case I think you could put it all in one line:

```
int NumNeuron() const { return aNeuronGenes.size(); }
```

(That should be fewer than 80 characters.)

---
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#r73810107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160807/41fcc5e6/attachment.html>


More information about the mlpack-git mailing list