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 (108k 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.

Browse Categories

...