Save model in JSON format
#JSON format
json_string = model.to_json()
Reconstruction of the model as well
from keras.models import model_from_json
model = model_from_json(json_string)
Save and load weights
fro mkeras.models import load_model
#Create HDF5 format file
model.save('model.h5')
#Model loading
model = load_model('model.h5')
Recommended Posts