马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
三层网络,10个输入,6个隐含,2个输出,原程序如下:<br>p=[0.7,0.3,0.9,0.7,0.34,0.5,0.7,0.65,0.7,0.7;...<br> 0.5,0.1,0.1,0.5,0.46,0.7,0.1,0.10,0.1,0.1;...<br> 0.5,0.1,0.1,0.5,0.18,0.5,0.1,0.10,0.1,0.1;...<br> 0.7,0.7,0.5,0.7,0.30,0.7,0.9,0.65,0.1,0.7;...<br> 0.9,0.1,0.5,0.9,0.46,0.1,0.7,0.90,0.1,0.5;...<br> 0.5,0.7,0.5,0.5,0.26,0.5,0.3,0.10,0.1,0.5;...<br> 0.7,0.7,0.9,0.9,0.22,0.7,0.7,0.10,0.1,0.5;...<br> 0.7,0.1,0.1,0.7,0.78,0.3,0.1,0.10,0.3,0.1;...<br> 0.7,0.1,0.7,0.1,0.22,0.3,0.1,0.10,0.1,0.9;...<br> 0.7,0.1,0.7,0.7,0.18,0.9,0.1,0.10,0.1,0.9;...<br> 0.7,0.7,0.7,0.9,0.38,0.9,0.9,0.65,0.1,0.7;...<br> 0.5,0.3,0.1,0.7,0.50,0.1,0.7,0.65,0.1,0.9;...<br> 0.5,0.3,0.5,0.7,0.26,0.3,0.7,0.65,0.3,0.7;...<br> 0.9,0.3,0.7,0.9,0.46,0.7,0.9,0.90,0.1,0.7;...<br> 0.7,0.3,0.7,0.9,0.90,0.9,0.9,0.90,0.1,0.1;...<br> 0.7,0.5,0.7,0.9,0.70,0.7,0.7,0.10,0.1,0.1;...<br> 0.3,0.3,0.3,0.5,0.70,0.3,0.1,0.10,0.1,0.1;...<br> 0.7,0.3,0.9,0.9,0.38,0.5,0.7,0.10,0.1,0.1;...<br> 0.9,0.3,0.5,0.7,0.90,0.7,0.9,0.90,0.1,0.1;...<br> 0.7,0.5,0.3,0.7,0.58,0.5,0.9,0.90,0.1,0.1]';<br>t=[0.85,0;1.10,1;1.36,1;0.94,0;0.75,0;1.57,1;0.87,0;1.45,1;1.78,1;1.38,1;0.91,0;1.35,1;...<br>1.04,1;0.78,0;0.75,0;0.97,0;2.1,1;0.95,0;0.90,0;0.94,0]';<br>net=newff(minmax(p),[10,6,2],{'logsig','logsig','logsig'},'trainlm')<br>net.trainParam.epochs=10000;<br>net.trainParam.goal=1e-5;<br>net.trainParam.show=50;<br>net.trainParam.lr=0.02;<br>net.trainParam.lr_inc=1.04;<br>net.trainParam.lr_dec=0.7;<br>net=train(net,p,t) <br>
问题 1:为何不收敛?是传递函数问题还是输入样本的问题?<br>
2:需要对T进行归一化处理吗?如何归一化?<br>
3:欲获得十个输入指标在输入样本中的权重值,即欲先得到如下结果:<br>
隐含层单元
输 入 层 单 元
输出层单元<br>1
2 3
4
5
6
7
8 9
10<br>1 0.843 0.792 0.022 0.216 0.831 0.103 0.799 0.949 0.835<br>2
0.414 0.056 0.592 0.279 0.226 0.999 0.281
0.976 - 0.119<br>3
0.844 0.910 0.453 0.806 0.655 0.674 0.046 0.401 -
0.301<br>4 0.791 0.365 0.298 0.825
0.981 0.016 0.296 0.278 4.364<br>5
0.375 0.529 0.624 0.592 0.248 0.099 0.381
0.159 0.113<br>6
0.956 0.754 0.643 0.978 0.521 0.096 0.294
0.152 0.45 <br>
再通过相应的公式求得各输入指标中各神经元权重系数,请问通过什么命令可以实现?由于我的输出结果是两个指标,如何同时显示两个输出层单元的神经元权重系数?<br>
请版主和各位大侠帮忙。<br>
<br>
<br>
<br>
|