From f5e7e167119dff9e2bae122f44fc2172b0cae14b Mon Sep 17 00:00:00 2001 From: nunzip Date: Wed, 27 Feb 2019 19:20:17 +0000 Subject: Fix y_test format bug --- lenet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lenet.py b/lenet.py index 982cd7e..4752fc3 100644 --- a/lenet.py +++ b/lenet.py @@ -20,6 +20,7 @@ def import_mnist(): X_test, y_test = mnist.test.images, mnist.test.labels y_train = keras.utils.to_categorical(y_train, 10) y_validation = keras.utils.to_categorical(y_validation, 10) + y_test = keras.utils.to_categorical(y_test, 10) return X_train, y_train, X_validation, y_validation, X_test, y_test def plot_images(images, cls_true, cls_pred=None): -- cgit v1.2.3