Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed tensorflow issue https://github.com/tensorflow/tensorflow/issues/75194 #2325

Merged
merged 3 commits into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions site/en/tutorials/keras/overfit_and_underfit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,10 @@
" model.summary()\n",
"\n",
" history = model.fit(\n",
" train_ds,\n",
" train_ds.map(lambda x, y: (x, tf.expand_dims(y, axis=-1))),\n",
" steps_per_epoch = STEPS_PER_EPOCH,\n",
" epochs=max_epochs,\n",
" validation_data=validate_ds,\n",
" validation_data=validate_ds.map(lambda x, y: (x, tf.expand_dims(y, axis=-1))),\n",
" callbacks=get_callbacks(name),\n",
" verbose=0)\n",
" return history"
Expand Down Expand Up @@ -977,7 +977,7 @@
"source": [
"`l2(0.001)` means that every coefficient in the weight matrix of the layer will add `0.001 * weight_coefficient_value**2` to the total **loss** of the network.\n",
"\n",
"That is why we're monitoring the `binary_crossentropy` directly. Because it doesn't have this regularization component mixed in.\n",
"That is why you need to monitor the `binary_crossentropy` directly. Because it doesn't have this regularization component mixed in.\n",
"\n",
"So, that same `\"Large\"` model with an `L2` regularization penalty performs much better:\n"
]
Expand Down Expand Up @@ -1228,10 +1228,9 @@
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"name": "overfit_and_underfit.ipynb",
"toc_visible": true
"toc_visible": true
},
"kernelspec": {
"display_name": "Python 3",
Expand Down
Loading