如何使用classifier.layers [0] .get_weights()[0]来滤除获得权重的过滤器
我将classifier.layers [0] .get_weights()[0]的值存储在变量中,然后尝试使用plt.plot(z)对其进行绘制,并且给出了关于x和y中不等形状的错误< / p>
print(classifier.layers[0].get_weights()[0])
[[[[-0.05739735 -0.04123659 0.01003888 ... 0.00614985 0.007514
-0.04136308]
[ 0.00719272 0.03903375 0.0453072 ... 0.03405594 0.03346686
0.03591582]
[-0.0585894 0.05264825 -0.04994676 ... -0.00525639 0.03399929
0.01477485]]
.
.
.
[[-0.01388375 -0.05700774 0.01424563 ... -0.00992816 -0.04853098
0.0626167 ]
[ 0.04545232 -0.05922546 0.036078 ... 0.07337935 -0.06828106
-0.04623957]
[ 0.05832936 -0.01055143 0.04741726 ... 0.0077994 -0.06436307
0.06003629]]]]