필터 지우기
필터 지우기

Weights after training

조회 수: 2 (최근 30일)
Simone Leon
Simone Leon 2011년 3월 8일
I am trying to train a neural network with Input values and targets. However after training the network I want to be able to view the weights (values) after the training so I will be able to compare them from the initial weights.
How do I do this? I have been using the method net but it does not give me the actual values after training.

채택된 답변

Walter Roberson
Walter Roberson 2011년 3월 8일
Access net.IW (input weights) and net.LW (layer weights). For more information, see here

추가 답변 (2개)

mohammed
mohammed 2011년 4월 1일
you can access the weight using the following code
InputWeight=net.IW LayerWeight=net.LW Bias=net.b

Hessam
Hessam 2011년 6월 30일
for my case I created the Mfile from the gui. and then modified it to train a network using traingda function(varying learning rate). the function name in mfile is as follows: function net = HHR2(inputs,targets) ...... what should I type on the command window to access the weights? this one doesn't work: net.IW or HHR2(pn,tn).IW (pn and tn are the data included in my folder)
Thanks

Community Treasure Hunt

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

Start Hunting!

Translated by