Hands-On Neural Network Programming with C#
上QQ阅读APP看书,第一时间看更新

Calculating values

To calculate values, we take the output from our Sigmoid function and add to it the bias term:

public virtual double CalculateValue()
{
return Value = Sigmoid.Output(InputSynapses.Sum(a =>a.Weight *
a.InputNeuron.Value) + Bias);
}