How to get the trained weights and bias in nntool after training?

11 ビュー (過去 30 日間)
Tousif Ahmed
Tousif Ahmed 2017 年 8 月 9 日
コメント済み: Tousif Ahmed 2017 年 8 月 9 日
I have a matlab code in which i am using HOG features extracted inputs for training and testing and i am using nntool but i am unable to get the complete weights and bias after the inputs are trained in the nntool. Can anyone help me with that please?

回答 (1 件)

Baptiste Ottino
Baptiste Ottino 2017 年 8 月 9 日
OK, if you want to use the GUI nntool app, you have two ways of getting the weights:
  • Graphically. In the nntool menu, select your network (under 'Networks') and click 'Open'. Go to the tab 'View/Edit weights'. You can then copy/paste your weights.
  • Through the workspace. In nntool, click 'Export' and select your network. Then, from the command window, you can access your weights by calling the appropriate methods of the network object you created:
>> yourNetwork.iw{1,1}
>> yourNetwork.b{1}
>> yourNetwork.iw{2,1}
>> yourNetwork.b{2}
Returns the weights in the first (iw{1,1}) and second (iw{2,1}) layers, and the biases in the first (b{1}) and second(b{2}) layers. Good luck!
  2 件のコメント
Tousif Ahmed
Tousif Ahmed 2017 年 8 月 9 日
How to check the final weights in NPRTOOL
Tousif Ahmed
Tousif Ahmed 2017 年 8 月 9 日
I don't want to add my weights. The neural network is getting trained using nprtool. I am getting 88% accuracy after training and testing. Thing is I need to know the trained weights and bias value.

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

カテゴリ

Help Center および File ExchangeBiotech and Pharmaceutical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by