Simulinkでの学習済みnetのload方法
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MATLABのスクリプトで
net = trainNetwork(inputs, targets, layers, options);
で学習したモデルを
save('train_model.mat', 'net');
でmatファイルに保存し、simulinkのMATLAB Function内で下記のようにloadすると、
matData = load('train_model.mat');
train_model_net = matData.net;
下記エラーが出て、simulinkでloadできません。MATLABスクリプトで学習したネットワークモデルをSimulinkでロードする方法はありますか?
<エラー>
関数 'load' を使用する変数をサポートしないクラスが見つかりました。
Value at 'matData.net' unsupported for code generation.
0 Commenti
Risposte (1)
Hidenori Sakaniwa
il 27 Mar 2025
Spostato: Kojiro Saito
il 27 Mar 2025
1 Commento
Hiro Yoshino
il 30 Mar 2025
幾つか機械学習モデルを受け付ける block が存在します:
predict 以外にも色々と有りますので、ご覧ください。
Vedere anche
Categorie
Scopri di più su Deep Learning Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!