Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AI and Deep Learning by (120 points)
In Keras, a trained model is saved in the hdf5 format. But, what I have is a .dat format file in which the model is saved. Now, how would I retrieve that model?

1 Answer

0 votes
by (107k points)

You can retrieve the model with the help of load_model(), refer to the below code:

from keras.models import load_model

model = load_model('model.h5')

The above code will import your created model from the provided hdf5 file into the model variable.

You can refer to the artificial intelligence training course that will help you to understand the topic in a better way.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...