Using Models
Explore how to effectively use trained deep learning models in Keras by saving models with .h5 files, reloading them, and making predictions on new data. Understand the practical steps for file handling and the importance of preprocessing test features to ensure accurate prediction results.
We'll cover the following...
We'll cover the following...
There are three operations that can be performed in order to use the trained models:
- Save
- Reload
- Predict
πΎ Save the model
Models can be saved using the save method using .h5 extension.
π Note: The Educative code widget provides the option of downloading the file when you write the
savefunction. When working in a local workspace, the file is saved in the current working directory or ...