5,321
edits
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
While you can train using <code>model.compile</code> and <code>model.fit</code>, using your own custom training loop is much more flexable and easier to understand. | While you can train using <code>model.compile</code> and <code>model.fit</code>, using your own custom training loop is much more flexable and easier to understand. | ||
You can write your own training loop by doing the following: | You can write your own training loop by doing the following: | ||
<syntaxhighlight | <syntaxhighlight lang="python"> | ||
my_model= keras.Sequential([ | my_model= keras.Sequential([ | ||
Line 50: | Line 50: | ||
==Usage (TF1)== | ==Usage (TF1)== | ||
==Estimators== | |||
[https://towardsdatascience.com/first-contact-with-tensorflow-estimator-69a5e072998d First Contact w/ TF Estimator (TDS)]<br> | |||
===Training Statistics=== | |||
[https://stackoverflow.com/questions/48940155/tensorflow-is-there-a-way-to-store-the-training-loss-in-tf-estimator Reference]<br> | |||
You can extract the training loss from the events file in tensorflow. |