Knowing the Weights in Matlab

4 次查看(过去 30 天)
I fitted the function using neural networks and after the computation is complete, I want to know the Final Weights and bias used after the optimisation process is complete. when I used the net.b command it is showing an array...which is not clear in terminology (P.S. net is name of my file)

采纳的回答

Mark Hudson Beale
The biases for each layer i are net.b{i}. So for a two layer network the biases are net.b{1} and net.b{2}.
The weights to layer i from input j are net.IW{i,j}. For a typical two layer network net.IW{1,1} will exist, while net.IW{2,1} will be empty because the input only goes to layer 1.
The weights to layer i from layer j are net.LW{i,j}. For a typical two layer network net.LW{2,1} will contain the weights to layer 2 from layer 1 and the other layer weights will be empty.
You should also take into account the input and output processing, if you are wanting to reproduce the input-output network function yourself. These functions and settings are available for a two layer network with these properties:
net.inputs{1}.processFcns
net.inputs{1}.processSettings
net.outputs{2}.processFcns
net.outputs{2}.processSettings

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by