1

I have created the following jupyter notebook. I have used 200 epoches for the training purpose. But there was a power failure and the epoch it reached was 110. Now I need to restart it from zero. All my hardwork was wasted.

Have a look at the Jupyter Notebook created by me.

What should I do to save the train model and find out the best out of it? I want to restore the model saved even if there is any problem associated to power.

How to save and restore the model successfully? Currently I am going with 200 epoches but I soon think to move for 1000.

If possible then suggest me how I can move to Keras. I have heard it is simple to understand compare to Tensorflow.

James Z
  • 12,209
  • 10
  • 24
  • 44
Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
  • You should use Pickle. Saving trained models (among other things) in exactly what it is used for. – jazib jamil Jul 16 '18 at 11:42
  • Please can you help me with example or just telling me where I can do what to save and restore. PLease. – Jaffer Wilson Jul 16 '18 at 11:47
  • There is a tensorflow's own tutorial; [https://www.tensorflow.org/guide/saved_model] , have a look. try it and let me know if it is still not clear. – jazib jamil Jul 16 '18 at 11:51
  • [This question might help you](https://stackoverflow.com/questions/33759623/tensorflow-how-to-save-restore-a-model) – Vikas NS Jul 16 '18 at 16:57

0 Answers0