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!