Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Use `return_dict=True` for evaluate.
  • Loading branch information
MarkDaoust authored Aug 29, 2024
1 parent 70c03a9 commit bd582f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/en/tutorials/keras/text_classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,8 @@
")\n",
"\n",
"# Test it with `raw_test_ds`, which yields raw strings\n",
"_, _, loss, accuracy = export_model.evaluate(raw_test_ds)\n",
"print(accuracy)"
"metrics = export_model.evaluate(raw_test_ds, return_dict=True)\n",
"print(metrics)"
]
},
{
Expand Down

0 comments on commit bd582f3

Please sign in to comment.