Layers average their output sums
This commit is contained in:
parent
44760d0402
commit
5e32724b1a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue