aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornunzip <np.scarh@gmail.com>2019-02-27 19:20:17 +0000
committernunzip <np.scarh@gmail.com>2019-02-27 19:20:17 +0000
commitf5e7e167119dff9e2bae122f44fc2172b0cae14b (patch)
treee13e85aa1c49de19d4f2c77db9fadd8c3a834a23
parentff33b976f5d1846041b472c87e0f5d5cf6e79529 (diff)
downloade4-gan-f5e7e167119dff9e2bae122f44fc2172b0cae14b.tar.gz
e4-gan-f5e7e167119dff9e2bae122f44fc2172b0cae14b.tar.bz2
e4-gan-f5e7e167119dff9e2bae122f44fc2172b0cae14b.zip
Fix y_test format bug
-rw-r--r--lenet.py1
1 files changed, 1 insertions, 0 deletions
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):