質問編集履歴

2

コードの修正

2019/06/06 05:17

投稿

SuzuAya
SuzuAya

score71

test CHANGED
File without changes
test CHANGED
@@ -320,6 +320,14 @@
320
320
 
321
321
 
322
322
 
323
+ #numpy配列をタプルに変換
324
+
325
+ x_train = tuple(x_train)
326
+
327
+ x_test = tuple(x_test)
328
+
329
+
330
+
323
331
  #各サンプルの平均を0にする
324
332
 
325
333
  train_datagen = ImageDataGenerator(samplewise_center=True)

1

コードの修正

2019/06/06 05:17

投稿

SuzuAya
SuzuAya

score71

test CHANGED
File without changes
test CHANGED
@@ -598,9 +598,9 @@
598
598
 
599
599
  epochs=epochs,#20,
600
600
 
601
- validation_data=validation_generator,
601
+ validation_data=(validation_generator,None),
602
-
602
+
603
- validation_steps=epochs,
603
+ validation_steps=x_test.shape[0] // batch_size,
604
604
 
605
605
  verbose=1,
606
606