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

質問編集履歴

2

情報の追加

2018/11/13 04:11

投稿

taiyo2017
taiyo2017

スコア170

title CHANGED
File without changes
body CHANGED
@@ -2,6 +2,8 @@
2
2
  ValueError: Cannot feed value of shape (9, 104) for Tensor u'InputData/X:0', which has shape '(?, 11, 104)'とエラーがでました。
3
3
  Tracebackには、
4
4
  ```ここに言語を入力
5
+ Training samples: 9
6
+ Validation samples: 2
5
7
  Traceback (most recent call last):
6
8
  File "cnn.py", line 167, in <module>
7
9
  model.fit(trainDataSet, trainLabel, n_epoch=100, batch_size=32, validation_set=0.1, show_metric=True)

1

情報の修正

2018/11/13 04:11

投稿

taiyo2017
taiyo2017

スコア170

title CHANGED
File without changes
body CHANGED
@@ -4,7 +4,7 @@
4
4
  ```ここに言語を入力
5
5
  Traceback (most recent call last):
6
6
  File "cnn.py", line 167, in <module>
7
- model.fit(np.array(trainDataResult), np.array(trainLabelResult), n_epoch=100, batch_size=32, validation_set=0.1, show_metric=True)
7
+ model.fit(trainDataSet, trainLabel, n_epoch=100, batch_size=32, validation_set=0.1, show_metric=True)
8
8
  File "/Users/xxx/anaconda/xxx/lib/python2.7/site-packages/tflearn/models/dnn.py", line 216, in fit
9
9
  callbacks=callbacks)
10
10
  File "/Users/xxx/anaconda/xxx/lib/python2.7/site-packages/tflearn/helpers/trainer.py", line 339, in fit