teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

エラー詳細記載しました。

2021/06/08 14:01

投稿

ques346
ques346

スコア60

title CHANGED
File without changes
body CHANGED
@@ -251,4 +251,27 @@
251
251
  onodes = 400
252
252
  lr = 0.3
253
253
 
254
- ここは、前に作ったプログラムから数値の変更点を変更しただけなので、他が問題ですかね・・・。
254
+ ここは、前に作ったプログラムから数値の変更点を変更しただけなので、他が問題ですかね・・・。
255
+
256
+ エラー詳細は、
257
+ ---------------------------------------------------------------------------
258
+ ValueError Traceback (most recent call last)
259
+ <ipython-input-22-1bf6b94b7030> in <module>()
260
+ 224 for record in test_data_list:
261
+ 225 idata = (np.array(out_data_list0[1:]) / 255.0 * 0.99) + 0.01
262
+ --> 226 predict = nn.feedforward(idata)
263
+ 227 plabel = np.argmax(predict)
264
+ 228 print("predict" ,predict)
265
+
266
+ <ipython-input-22-1bf6b94b7030> in feedforward(self, idata)
267
+ 184
268
+ 185 # 隠れ層
269
+ --> 186 x_h = np.dot(self.w_ih, o_i)
270
+ 187 o_h = self.af(x_h)
271
+ 188
272
+
273
+ <__array_function__ internals> in dot(*args, **kwargs)
274
+
275
+ ValueError: shapes (60,30) and (0,1) not aligned: 30 (dim 1) != 0 (dim 0)
276
+
277
+ です。