Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # KERAS
- # architecture and weights to HDF5
- model.save('models/keras/model.h5')
- # architecture to JSON, weights to HDF5
- model.save_weights('models/keras/weights.h5')
- with open('models/keras/architecture.json', 'w') as f:
- f.write(model.to_json())
Add Comment
Please, Sign In to add comment