Guest User

Untitled

a guest
Jan 30th, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. from keras.models import load_model
  2.  
  3. # load model
  4. model = load_model('model.h5')
  5.  
  6. # summarize model
  7. print(model.summary())
  8.  
  9. # use model to predict something
  10. predicted = model.predict(...)
  11.  
  12. # save model and architecture to single file
  13. model.save('model.h5')
  14. print('Saved model to disk')
Advertisement
Add Comment
Please, Sign In to add comment