質問編集履歴

2

エラー時コード追記2

2018/09/19 04:05

投稿

hmgien1469
hmgien1469

スコア11

test CHANGED
File without changes
test CHANGED
@@ -110,6 +110,14 @@
110
110
 
111
111
  **#以下データ読み込み、予測コード**
112
112
 
113
+ import numpy as image_np
114
+
115
+ from PIL import Image, ImageOps
116
+
117
+ import os
118
+
119
+
120
+
113
121
  #取得画像answer
114
122
 
115
123
  image_ans = (8,9,5,0)

1

エラー時のコードに追記

2018/09/19 04:05

投稿

hmgien1469
hmgien1469

スコア11

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,30 @@
13
13
 
14
14
 
15
15
  ```ここに言語を入力
16
+
17
+ %matplotlib inline
18
+
19
+ from __future__ import division, print_function
20
+
21
+
22
+
23
+ from keras import backend as K
24
+
25
+ from keras.datasets import mnist
26
+
27
+ from keras.layers import Activation, Dense, Dropout
28
+
29
+ from keras.layers.normalization import BatchNormalization
30
+
31
+ from keras.models import Sequential
32
+
33
+ from keras.utils.np_utils import to_categorical
34
+
35
+ import numpy as np
36
+
37
+ from sklearn.metrics import classification_report, confusion_matrix
38
+
39
+
16
40
 
17
41
  # Kerasに付属の手書き数字画像データをダウンロード
18
42