how can I access the weight??? and bias??
조회 수: 2 (최근 30일)
이전 댓글 표시
hi I am a beginer. after design a perceptron neural network how can I access the weight??? and bias?? I dont mean sim(net). Kindly guide me. Thanks,
댓글 수: 0
채택된 답변
Greg Heath
2014년 8월 30일
If you you normalize your inputs and targets using maxmin or mapstd, the function for the normalized variables is
yn = B2 + LW*tansig(IW*xn+B1);
Hope this helps.
Thank you for formally accepting my answer
Greg
댓글 수: 0
추가 답변 (1개)
Greg Heath
2014년 8월 28일
clear all, clc
[x,t] = simplefit_dataset;
net = fitnet;
rng(0)
net = train(net,x,t);
IW = net.IW{1,1}
b1 = net.b{1}
LW = net.LW{2,1}
b2 = net.b{2}
whos IW b1 LW b2
Hope this helps.
Thank you for formally accepting my answer
Greg
참고 항목
카테고리
Help Center 및 File 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!