Using a python trained neural network

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 件のコメント

Sania Gul
Sania Gul 2022 年 10 月 26 日
Wow. That's great. Tnk u sooooooooo much.
Sania Gul
Sania Gul 2022 年 10 月 26 日
MATLAB is the BEST

サインインしてコメントする。

 採用された回答

David Willingham
David Willingham 2022 年 10 月 25 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

製品

リリース

R2019a

質問済み:

2022 年 10 月 25 日

コメント済み:

2022 年 10 月 26 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by