Can I call the neural network trained in *. mat in Python through the matlab API?
10 次查看(过去 30 天)
显示 更早的评论
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');
0 个评论
回答(1 个)
David Willingham
2022-11-16
There is a good example that shows how to call MATLAB from Python for deep learning on Github:
See the script CallMATLABFromPythonPyTorch.mlx
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!