How to save CNN model in keras?

0 votes

Hi Guys,

I created one CNN model and it works fine. I want to save this model so that I can use this in future. How can I do that?

May 19 in Machine Learning by akhtar
• 11,250 points
29 views

1 answer to this question.

0 votes

Hi@akhtar,

You can save your CNN model in keras. For that you have to import one module named save_model. Use the below given code to do this task.

from keras.models import save_model
model = save_model(model,'/path/name.h5')

Hope this will help.

answered May 19 by MD
• 24,500 points

Related Questions In Machine Learning

0 votes
1 answer

How to import one Machine Learning model?

Hi@akhtar, To import one pre-created ML model, you ...READ MORE

answered Apr 13 in Machine Learning by MD
• 24,500 points
44 views
0 votes
1 answer

How to add one new column in an existing dataset?

Hi@akhtar, You can do this task using numpy ...READ MORE

answered Apr 17 in Machine Learning by MD
• 24,500 points
18 views
+1 vote
1 answer

​In ANN how the weight gets selected by the model INITIALLY?

Hi@Nandini, When you add your NN layer, it ...READ MORE

answered May 9 in Machine Learning by MD
• 24,500 points
32 views
0 votes
1 answer
0 votes
1 answer

ImportError: `load_weights` requires h5py.

Hi@akhtar, You are trying to use pre-created weight of ...READ MORE

answered May 18 in Machine Learning by MD
• 24,500 points
47 views
0 votes
1 answer

Pycharm error: could not find a version that satisfies the requirement

Check the python version installed. Tensorflow is ...READ MORE

answered May 29, 2019 in Data Analytics by Zulaikha
• 890 points
995 views
+1 vote
2 answers

ValueError: Not enough values to unpack

Make the following changes in your script, ...READ MORE

answered Jun 24, 2019 in Machine Learning by Omkar
• 69,060 points
7,273 views
+1 vote
1 answer

How to load CNN model in keras?

Hi@akhtar, You can load your pre-created model in ...READ MORE

answered May 18 in Machine Learning by MD
• 24,500 points
79 views
0 votes
1 answer

How to save machine learning model?

Hi@akhtar, To save your Machine Learning model, you ...READ MORE

answered Apr 13 in Machine Learning by MD
• 24,500 points
70 views