Knowing the Weights in Matlab

조회 수: 2 (최근 30일)
Scientist iitb
Scientist iitb 2011년 7월 18일
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
Mark Hudson Beale 2011년 9월 9일
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