Skip to content

Commit bd582f3

Browse files
authored
Apply suggestions from code review
Use `return_dict=True` for evaluate.
1 parent 70c03a9 commit bd582f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/en/tutorials/keras/text_classification.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@
861861
")\n",
862862
"\n",
863863
"# Test it with `raw_test_ds`, which yields raw strings\n",
864-
"_, _, loss, accuracy = export_model.evaluate(raw_test_ds)\n",
865-
"print(accuracy)"
864+
"metrics = export_model.evaluate(raw_test_ds, return_dict=True)\n",
865+
"print(metrics)"
866866
]
867867
},
868868
{

0 commit comments

Comments
 (0)