110,566
社区成员
发帖
与我相关
我的任务
分享
// 这一行计算结点的输出,训练后,输出层结点的输出接近常数 a
node.Output = (2 * a) / (1 + Math.Exp(-b * node.Input)) - a;
// 这一行计算输出层结点的梯度,训练后,输出层结点的梯度接近 0
node.Grads = (b / a) * (node.ExpectedOutput - node.Output) * (a - node.Output) * (a + node.Output);
// 权值增量
double delta = LearningRate * conn.To.Grads * conn.From.Output;