Layers average their output sums

main
mandlm 2015-11-15 16:08:49 +01:00
parent 44760d0402
commit 5e32724b1a
1 changed files with 1 additions and 1 deletions

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)