关于神经网络的权值和阈值的问题?。

11 views (last 30 days)
baxare
baxare on 21 Nov 2022
Answered: foray on 21 Nov 2022
网络如下:
P=[0 1 2 3 4 5];
T=[0 0 0 1 1 1];
net=newff(P,T,2,{},'trainbfg');
net=train(net,P,T);
a1=sim(net,P);
运行程勋如下:
a1 =
0.2102 0.1239 0.1024 0.0992 0.0929 0.0643
那么问题来了,我这个网络中的权值和阈值我没有设就有了,怎么看?是默认的吗?权值和阈值对于网络的输出有何影响?我想要赋予我这个网路的权值和阈值该如何选择,有何标准,谢谢!哦,还有拿我这个网络为例,我如何自己赋予权值和阈值?
问题有点多,谢谢帮忙解答!

Accepted Answer

foray
foray on 21 Nov 2022
权值是默认的随机数,阈值不知道你指的是什么。。。关于网络的初始化,你可以看看官方文档,不过这是最新版本的文档,你用的"newff"现在已经被"feedforwardnet"代替了。

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!