Guest User

Untitled

a guest
Oct 16th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # KERAS
  2.  
  3. # architecture and weights to HDF5
  4. model.save('models/keras/model.h5')
  5.  
  6. # architecture to JSON, weights to HDF5
  7. model.save_weights('models/keras/weights.h5')
  8. with open('models/keras/architecture.json', 'w') as f:
  9. f.write(model.to_json())
Add Comment
Please, Sign In to add comment