Skip to content

Commit e96ecf1

Browse files
author
M Liang
committed
Alternative fix for initial_epoch (better conceptualization). Formatting check.
1 parent b0b02dd commit e96ecf1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

site/en/tutorials/images/transfer_learning.ipynb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@
930930
"\n",
931931
"history_fine = model.fit(train_dataset,\n",
932932
" epochs=total_epochs,\n",
933-
" initial_epoch=history.epoch[-1]+1,\n",
933+
" initial_epoch=len(history.epoch),\n",
934934
" validation_data=validation_dataset)"
935935
]
936936
},
@@ -1081,22 +1081,12 @@
10811081
"\n",
10821082
"To learn more, visit the [Transfer learning guide](https://www.tensorflow.org/guide/keras/transfer_learning).\n"
10831083
]
1084-
},
1085-
{
1086-
"cell_type": "code",
1087-
"execution_count": null,
1088-
"metadata": {
1089-
"id": "uKIByL01da8c"
1090-
},
1091-
"outputs": [],
1092-
"source": []
10931084
}
10941085
],
10951086
"metadata": {
10961087
"accelerator": "GPU",
10971088
"colab": {
10981089
"name": "transfer_learning.ipynb",
1099-
"private_outputs": true,
11001090
"toc_visible": true
11011091
},
11021092
"kernelspec": {

0 commit comments

Comments
 (0)