正在加载图片...
SSE=sumsqr(T-purelin(W*P, b)); %最终误差 %显示结果并给出结论 plo oterr(errors) fprintf('n After%Of epochs, sum squared e error=%g. nIn', SsE) fprintf( Training took %. Of flops. n', flops) printf( Trained network operates: ) if sse <err goal disp('adequately') disp(inadequately. end end 运行w2m在训练274次循环后其误差平方和达到0.000993245,而初始误 差为144463。在整个训练过程中误差的变化走向如图5.3所示 训练后的网络权值为: W=[-2.46122.28433.1529; 2,1895-18132-2.0605 20821-1.260400480: 166150.97790.9928]; B=[-1.0440;12099;0.4448;0.3137;9 SSE=sumsqr(T-purelin(W*P, B)); %最终误差 %显示结果并给出结论 ploterr(errors), fprintf (‘\n After%.0f epochs,sum squared e error=%g. \n\n’, SSE), fprintf (‘Training took %.0f flops. \n’, flops), fprintf (‘ Trained network operates:’); if SSE<err_goal disp(‘Adequately.’) else disp(‘Inadequately.’) end end 运行 wf2.m 在训练 274 次循环后其误差平方和达到 0.000993245,而初始误 差为 144.463。在整个训练过程中误差的变化走向如图 5.3 所示。 训练后的网络权值为:
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有