Skip to content

Commit

Permalink
Alternative fix for initial_epoch (better conceptualization). Formatt…
Browse files Browse the repository at this point in the history
…ing check.
  • Loading branch information
M Liang committed Dec 18, 2023
1 parent b0b02dd commit e96ecf1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions site/en/tutorials/images/transfer_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@
"\n",
"history_fine = model.fit(train_dataset,\n",
" epochs=total_epochs,\n",
" initial_epoch=history.epoch[-1]+1,\n",
" initial_epoch=len(history.epoch),\n",
" validation_data=validation_dataset)"
]
},
Expand Down Expand Up @@ -1081,22 +1081,12 @@
"\n",
"To learn more, visit the [Transfer learning guide](https://www.tensorflow.org/guide/keras/transfer_learning).\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "uKIByL01da8c"
},
"outputs": [],
"source": []
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"name": "transfer_learning.ipynb",
"private_outputs": true,
"toc_visible": true
},
"kernelspec": {
Expand Down

0 comments on commit e96ecf1

Please sign in to comment.