From 5a0970342c14e3e47bbd0cc66848e8c89a76a179 Mon Sep 17 00:00:00 2001 From: chunduriv <74177924+chunduriv@users.noreply.github.com> Date: Tue, 11 Oct 2022 15:28:59 +0530 Subject: [PATCH] Change `vocab_size` to `vocabulary_size` `vocab_size` is deprecated, instead we should use `vocabulary_size` and it will also remove deprecated warning from the tutorial. --- docs/examples/quickstart.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/examples/quickstart.ipynb b/docs/examples/quickstart.ipynb index f037568c..fb8df5ec 100644 --- a/docs/examples/quickstart.ipynb +++ b/docs/examples/quickstart.ipynb @@ -224,11 +224,11 @@ "# Define user and movie models.\n", "user_model = tf.keras.Sequential([\n", " user_ids_vocabulary,\n", - " tf.keras.layers.Embedding(user_ids_vocabulary.vocab_size(), 64)\n", + " tf.keras.layers.Embedding(user_ids_vocabulary.vocabulary_size(), 64)\n", "])\n", "movie_model = tf.keras.Sequential([\n", " movie_titles_vocabulary,\n", - " tf.keras.layers.Embedding(movie_titles_vocabulary.vocab_size(), 64)\n", + " tf.keras.layers.Embedding(movie_titles_vocabulary.vocabulary_size(), 64)\n", "])\n", "\n", "# Define your objectives.\n",