这里是我的代码(在MLP网络中的神经元):神经网络的激活/输出
double summation = 0;
for (int i = 0; i < weights.length; i++) {
summation += inputs[i] * weights[i];
}
double normalized = Math.tanh(summation);
if (normalized > 0.9 || normalized < -0.9) {
activated = 1;
} else {
activated = 0;
}
我认为这是不正确。输出应该是归一化的值,还是总是限制为0或1?
这取决于..... – 2012-01-09 00:56:41
你能详细点吗? – 2012-01-09 00:57:54
不同型号使用不同的激活功能。 – 2012-01-09 01:01:09