Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
shivance committed Jul 1, 2023
1 parent 4e1afc9 commit ade5fb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions guides/ipynb/keras_nlp/getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"\n",
"# Inspect first review\n",
"# Format is (review text tensor, label tensor)\n",
"print(imdb_train.unbatch().take(1).get_single_element())\n"
"print(imdb_train.unbatch().take(1).get_single_element())"
]
},
{
Expand Down Expand Up @@ -385,9 +385,7 @@
")\n",
"\n",
"classifier = keras_nlp.models.BertClassifier.from_preset(\n",
" \"bert_tiny_en_uncased\",\n",
" preprocessor=None,\n",
" num_classes=2\n",
" \"bert_tiny_en_uncased\", preprocessor=None, num_classes=2\n",
")\n",
"classifier.fit(\n",
" imdb_train_cached,\n",
Expand Down
4 changes: 1 addition & 3 deletions guides/keras_nlp/getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,7 @@
)

classifier = keras_nlp.models.BertClassifier.from_preset(
"bert_tiny_en_uncased",
preprocessor=None,
num_classes=2
"bert_tiny_en_uncased", preprocessor=None, num_classes=2
)
classifier.fit(
imdb_train_cached,
Expand Down

0 comments on commit ade5fb9

Please sign in to comment.