Can I call the neural network trained in *. mat in Python through the matlab API?

7 ビュー (過去 30 日間)
slevin Lee
slevin Lee 2022 年 11 月 16 日
回答済み: David Willingham 2022 年 11 月 16 日
There is a trained neural network in my demo.mat
How can I call through matlab API in python
In the end, I just need to run the following code in Python and get the YPred value
[net,YPred] = predictAndUpdateState(net,xtrain,'ExecutionEnvironment','cpu');

回答 (1 件)

David Willingham
David Willingham 2022 年 11 月 16 日
There is a good example that shows how to call MATLAB from Python for deep learning on Github:

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by