Layers average their output sums
This commit is contained in:
parent
44760d0402
commit
5e32724b1a
@ -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)
|
||||||
|
Reference in New Issue
Block a user