Using a python trained neural network
30 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sania Gul
am 25 Okt. 2022
Kommentiert: Sania Gul
am 26 Okt. 2022
Can you please tell me how I can save a neural network after training,in Jupiter notebook and retrieve it in MATLAB for testing on the TEST dataset.
Should I store it without .h5 or with h5 extension? A new folder "MyModel" is created, when I run generator.save("MyModel") and there is a file inside it with name "saved_model.pb"? How it is loaded and tested in MATLAB 2019a version?
2 Kommentare
Akzeptierte Antwort
David Willingham
am 25 Okt. 2022
Hi Sania,
I would recommend saving the model in the TensorFlow saved model format and then import it via the TensorFlow converter using the function importTensorFlowNetwork.
To save a model in the TensorFlow saved model format use the following python code:
model.save("MyModel")
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!