From a0901ae6c9e960e5e88750ccb329196867c46bf8 Mon Sep 17 00:00:00 2001 From: Amit Aharoni Date: Fri, 25 Aug 2023 16:20:05 +0200 Subject: [PATCH] Keras basic text classification tutorial: removed +1 from embeddings input dimensions --- site/en/tutorials/keras/text_classification.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/en/tutorials/keras/text_classification.ipynb b/site/en/tutorials/keras/text_classification.ipynb index 4182c3f295f..f14964207ff 100644 --- a/site/en/tutorials/keras/text_classification.ipynb +++ b/site/en/tutorials/keras/text_classification.ipynb @@ -631,7 +631,7 @@ "outputs": [], "source": [ "model = tf.keras.Sequential([\n", - " layers.Embedding(max_features + 1, embedding_dim),\n", + " layers.Embedding(max_features, embedding_dim),\n", " layers.Dropout(0.2),\n", " layers.GlobalAveragePooling1D(),\n", " layers.Dropout(0.2),\n",