File "F:/MyDownloads/神经网络 激活函数/一篇论文/实验/新建文件夹/第七章/lenet5/lenet5/mnist_lenet5_backward.py", line 24, in backward y = mnist_lenet5_forward.forward(x,True, REGULARIZER) File "F:\MyDownloads\神经网络 激活函数\一篇论文\实验\新建文件夹\第七章\lenet5\lenet5\mnist_lenet5_forward.py", line 71, in forward if train: fc1 = my_dropout_tf(fc2_w, fc1) File "F:\MyDownloads\神经网络 激活函数\一篇论文\实验\新建文件夹\第七章\lenet5\lenet5\mnist_lenet5_forward.py", line 30, in my_dropout_tf rel =np.corrcoef(e) File "D:\program files\xin\anaconda\lib\site-packages\numpy\lib\function_base.py", line 3175, in corrcoef c = cov(x, y, rowvar) File "D:\program files\xin\anaconda\lib\site-packages\numpy\lib\function_base.py", line 3085, in cov avg, w_sum = average(X, axis=1, weights=w, returned=True) File "D:\program files\xin\anaconda\lib\site-packages\numpy\lib\function_base.py", line 1163, in average if scl.shape != avg.shape:AttributeError: 'float' object has no attribute 'shape'
添加回答
举报
0/150
提交
取消