是否需要softmax梯度计算?

时间:2020-02-25 06:59:36

标签: matlab deep-learning conv-neural-network backpropagation softmax

我刚刚在MATLAB中找到了一个CNN示例。体系结构是:
输入→转换→ReLU→合并→图层→ReLU→外层→softmax→输出
我编码了反向传播,但是发现反向传播过程中没有softmax梯度的精度为97%,反向传播过程中没有softmax梯度的精度为10%。

我只是想知道我的softmax梯度计算是否错误。

for i = 1:1:Length
    for j = 1:1:Length
        x(i) = x(i) + e(j)*((i == j) - e(i));
    end    
end

0 个答案:

没有答案