Layers average their output sums

This commit is contained in:
Michael Mandl 2015-11-15 16:08:49 +01:00
parent 44760d0402
commit 5e32724b1a

View file

@ -41,7 +41,7 @@ double Layer::getWeightedSum(size_t outputNeuron) const
sum += neuron.getWeightedOutputValue(outputNeuron);
}
return sum;
return sum / size();
}
void Layer::connectTo(const Layer & nextLayer)