Deep Learning with Keras Tutorial
Selected Reading
- Deep Learning with Keras - Discussion
- Deep Learning with Keras - Useful Resources
- Deep Learning with Keras - Quick Guide
- Conclusion
- Loading Model for Predictions
- Saving Model
- Predicting on Test Data
- Evaluating Model Performance
- Training the Model
- Preparing Data
- Compiling the Model
- Creating Deep Learning Model
- Importing Libraries
- Setting up Project
- Deep Learning
- Deep Learning with Keras - Introduction
- Deep Learning with Keras - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Saving Model
Deep Learning with Keras - Saving Model
We will save the trained model in our local drive in the models folder in our current working directory. To save the model, run the following code −
directory = "./models/" name = handwrittendigitrecognition.h5 path = os.path.join(save_dir, name) model.save(path) print( Saved trained model at %s % path)
The output after running the code is shown below −
Now, as you have saved a trained model, you may use it later on for processing your unknown data.
Advertisements