Skip to content

Commit 1a24db8

Browse files
committed
fix bug
1 parent fe17b13 commit 1a24db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kerasTUT/5-classifier_example.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
(X_train, y_train), (X_test, y_test) = mnist.load_data()
2424

2525
# data pre-processing
26-
X_train = X_train.reshape(X_train.shape[0], -1) / 256. # normalize
27-
X_test = X_test.reshape(X_test.shape[0], -1) / 256. # normalize
26+
X_train = X_train.reshape(X_train.shape[0], -1) / 255. # normalize
27+
X_test = X_test.reshape(X_test.shape[0], -1) / 255. # normalize
2828
y_train = np_utils.to_categorical(y_train, nb_classes=10)
2929
y_test = np_utils.to_categorical(y_test, nb_classes=10)
3030

0 commit comments

Comments
 (0)