猿问

各位大佬,请问这个问题怎么解决,拜托


  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'


慕容9012469
浏览 1109回答 1
1回答
随时随地看视频慕课网APP

相关分类

Python
我要回答