Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to save and load model in keras

# To save the model:

from keras.models import save_model

# you can write whatever you desire instead of 'my_model'
# model = Your trained model
model.save('my_model')

# To load the model:

from keras.models import load_model

reconstructed_model = load_model("my_model")
 
PREVIOUS NEXT
Tagged: #save #load #model #keras
ADD COMMENT
Topic
Name
9+6 =