Skip to content

Commit a0901ae

Browse files
committed
Keras basic text classification tutorial: removed +1 from embeddings input dimensions
1 parent e4ab8e0 commit a0901ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/tutorials/keras/text_classification.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@
631631
"outputs": [],
632632
"source": [
633633
"model = tf.keras.Sequential([\n",
634-
" layers.Embedding(max_features + 1, embedding_dim),\n",
634+
" layers.Embedding(max_features, embedding_dim),\n",
635635
" layers.Dropout(0.2),\n",
636636
" layers.GlobalAveragePooling1D(),\n",
637637
" layers.Dropout(0.2),\n",

0 commit comments

Comments
 (0)