【发布时间】:2017-08-01 09:14:58
【问题描述】:
我创建了一个具有典型激活函数(-1 或 1)的简单感知器,它似乎工作正常。
然后我阅读了关于 sigmoid 及其在值之间更平滑过渡的用途,但在使用导数时我总是得到 0.0,这会弄乱计算。 sigmoid 本身很好,对于较小的数字,它的小数,对于较大的数字,它又是 -1 或 1。
那么导数有什么用呢?
我的意思是一个例子:
double actual (-1 or 1 when using the "old" function)
double AdjustWeight(int input1,input2, expected, actual)
{
double error=expected-actual; //when actual is derivative, is 0 for me, instead of -1 or 1
....
}
【问题讨论】:
标签: c# neural-network