how can I access the weight??? and bias??

2 ビュー (過去 30 日間)
atefeh gh
atefeh gh 2014 年 8 月 26 日
回答済み: Greg Heath 2014 年 8 月 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,

採用された回答

Greg Heath
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

その他の回答 (1 件)

Greg Heath
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
  2 件のコメント
atefeh gh
atefeh gh 2014 年 8 月 28 日
thanks so if I want to write a function for this how can write this?? here I think we have one feature but w and b are 10, so how can Relating them to each other and make a function for it ?? Suppose that my feature is X.
atefeh gh
atefeh gh 2014 年 8 月 28 日
Actually I want to get the function
thanks

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSequence 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