Layers average their output sums

This commit is contained in:
mandlm 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); sum += neuron.getWeightedOutputValue(outputNeuron);
} }
return sum; return sum / size();
} }
void Layer::connectTo(const Layer & nextLayer) void Layer::connectTo(const Layer & nextLayer)