Skip to content

Commit 777bbba

Browse files
Merge pull request #2061 from RenuPatelGoogle:patch-13
PiperOrigin-RevId: 441874036
2 parents e265ba0 + 9b8b878 commit 777bbba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/tutorials/load_data/csv.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@
554554
" continue\n",
555555
" \n",
556556
" lookup = layers.StringLookup(vocabulary=np.unique(titanic_features[name]))\n",
557-
" one_hot = layers.CategoryEncoding(max_tokens=lookup.vocab_size())\n",
557+
" one_hot = layers.CategoryEncoding(num_tokens=lookup.vocabulary_size())\n",
558558
"\n",
559559
" x = lookup(input)\n",
560560
" x = one_hot(x)\n",

0 commit comments

Comments
 (0)