Skip to content

Commit

Permalink
Fixing the wrong predictions in transfer_learning.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
tilakrayal authored Jun 17, 2024
1 parent 75b2672 commit 38c16cc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion site/en/tutorials/images/transfer_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,6 @@
"predictions = model.predict_on_batch(image_batch).flatten()\n",
"\n",
"# Apply a sigmoid since our model returns logits\n",
"predictions = tf.nn.sigmoid(predictions)\n",
"predictions = tf.where(predictions < 0.5, 0, 1)\n",
"\n",
"print('Predictions:\\n', predictions.numpy())\n",
Expand Down

0 comments on commit 38c16cc

Please sign in to comment.