From a81889f2bb0948f67e89d3d806ff3cde10db2ff2 Mon Sep 17 00:00:00 2001 From: Crista Lopes Date: Thu, 2 Jan 2020 09:57:02 -0800 Subject: [PATCH] Minor clean up --- 38-sliding-window/tf-38.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/38-sliding-window/tf-38.py b/38-sliding-window/tf-38.py index 8139f5c..6b6e0f1 100644 --- a/38-sliding-window/tf-38.py +++ b/38-sliding-window/tf-38.py @@ -66,10 +66,9 @@ def normalization_layer_set_weights(n_layer): def build_model(): # Normalize characters using a dense layer model = Sequential() - dense_layer = Dense(INPUT_VOCAB_SIZE, + model.add(Dense(INPUT_VOCAB_SIZE, input_shape=(WINDOW_SIZE*INPUT_VOCAB_SIZE,), - activation='softmax') - model.add(dense_layer) + activation='softmax')) return model model = build_model()