回答編集履歴
2
体裁の修正
test
CHANGED
@@ -22,6 +22,6 @@
|
|
22
22
|
|
23
23
|
y_test = np_utils.to_categorical(y_test, num_classes)
|
24
24
|
|
25
|
-
|
25
|
+
|
26
26
|
|
27
27
|
のところ最後のコードを、「return X_train, y_train, X_test, y_test」に変更
|
1
書式の改善
test
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
|
7
7
|
print(X_train.shape)
|
8
8
|
|
9
|
-
|
9
|
+
|
10
10
|
|
11
11
|
X_train = X_train.astype("float") / 255
|
12
12
|
|
13
13
|
X_test = X_test.astype("float") / 255
|
14
14
|
|
15
|
-
|
15
|
+
|
16
16
|
|
17
17
|
y_train = np_utils.to_categorical(y_train, num_classes)
|
18
18
|
|