peter-ch / MultiNEAT

Portable NeuroEvolution Library
http://MultiNEAT.com
GNU Lesser General Public License v3.0
327 stars 104 forks source link

Bugs: Incoherent bias neuron behavior #24

Closed ydawei closed 7 years ago

ydawei commented 7 years ago

I manually specified DontUseBiasNeuron=True in the parameter, but in Genome::Mate(...) it still adds a bias neuron.

Also, the NeuralNetwork::Input(..) function ignores bias neuron and views the bias neuron as an input neuron.

peter-ch commented 7 years ago

Thanks, I'll take a look.

peter-ch commented 7 years ago

The problem in Genome::Mate() was fixed recently. NeuralNetwork::Input() is supposed to ignore the bias. At the point of activating the NN all inputs are treated equal. The bias isn't given a value of 1.0 automatically, the user has to supply it.