aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2019-02-27 19:02:35 +0000
committerVasil Zlatanov <v@skozl.com>2019-02-27 19:02:35 +0000
commitfae3543a1a5ee731dd4f961a860c856521f7f3fd (patch)
treef06b66676cfefcf8e01ebde9a06e33da5d26d217
parentdccbc5c219abdf90c4810eed4c2ec6231bf9f140 (diff)
downloade4-gan-fae3543a1a5ee731dd4f961a860c856521f7f3fd.tar.gz
e4-gan-fae3543a1a5ee731dd4f961a860c856521f7f3fd.tar.bz2
e4-gan-fae3543a1a5ee731dd4f961a860c856521f7f3fd.zip
Fix categorical_accuracy
-rw-r--r--lenet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lenet.py b/lenet.py
index a62138b..982cd7e 100644
--- a/lenet.py
+++ b/lenet.py
@@ -101,7 +101,7 @@ def plot_history(history, metric = None):
plt.ylabel('Loss')
plt.xlabel('Epoch')
-def train_classifier(x_train, y_train, x_val, y_val, batch_size=128, epochs=100, metrics=['categorical_accuracy'], optimizer = None):
+def train_classifier(x_train, y_train, x_val, y_val, batch_size=128, epochs=100, metrics=[categorical_accuracy], optimizer = None):
shape = (32, 32, 1)
# Pad data to 32x32 (MNIST is 28x28)