| 查看: 2178 | 回复: 5 | ||
[求助]
神经网络预测
|
|
P=[0.2452 0.1466 0.1314 0.2243 0.5523 0.6642 0.7015 0.6981 0.6821 0.6945 0.7549 0.8215 0.2415 0.3027 0; 0.2217 0.1581 0.1408 0.2304 0.5134 0.5312 0.6819 0.7125 0.7265 0.6847 0.7826 0.8325 0.2385 0.3125 0; 0.2525 0.1627 0.1507 0.2406 0.5502 0.5636 0.7051 0.7352 0.7459 0.7015 0.8064 0.8156 0.2216 0.2701 1; 0.2016 0.1105 0.1243 0.1978 0.5021 0.5232 0.6819 0.6952 0.7015 0.6825 0.7825 0.7895 0.2352 0.2506 0.5; 0.2115 0.1201 0.1312 0.2019 0.5532 0.5736 0.7029 0.7032 0.7189 0.7019 0.7965 0.8025 0.2542 0.3125 0; 0.2335 0.1322 0.1534 0.2214 0.5623 0.5827 0.7198 0.7276 0.7539 0.7506 0.8092 0.8221 0.2601 0.3198 0; 0.2368 0.1432 0.1653 0.2205 0.5823 0.5971 0.7136 0.7129 0.7263 0.7153 0.8091 0.8217 0.2579 0.3099 0; 0.2342 0.1368 0.1602 0.2131 0.5726 0.5822 0.7101 0.7098 0.7127 0.7121 0.7995 0.8126 0.2301 0.2867 0.5; 0.2113 0.1212 0.1305 0.1819 0.4952 0.5312 0.6886 0.6898 0.6999 0.7323 0.7721 0.7956 0.2234 0.2799 1; 0.2005 0.1121 0.1207 0.1605 0.4556 0.5022 0.6553 0.6673 0.6798 0.7023 0.7521 0.7756 0.2314 0.2977 0;] T=[0.2217 0.1581 0.1408 0.2304 0.5134 0.5312 0.6819 0.7125 0.7265 0.6847 0.7826 0.8325; 0.2525 0.1627 0.1507 0.2406 0.5502 0.5636 0.7051 0.7352 0.7459 0.7015 0.8064 0.8156; 0.2016 0.1105 0.1243 0.1978 0.5021 0.5232 0.6819 0.6952 0.7015 0.6825 0.7825 0.7895; 0.2115 0.1201 0.1312 0.2019 0.5532 0.5736 0.7029 0.7032 0.7189 0.7019 0.7965 0.8025; 0.2335 0.1322 0.1534 0.2214 0.5623 0.5827 0.7198 0.7276 0.7539 0.7506 0.8092 0.8221; 0.2368 0.1432 0.1653 0.2205 0.5823 0.5971 0.7136 0.7129 0.7263 0.7153 0.8091 0.8217; 0.2342 0.1368 0.1602 0.2131 0.5726 0.5822 0.7101 0.7098 0.7127 0.7121 0.7995 0.8126; 0.2113 0.1212 0.1305 0.1819 0.4952 0.5312 0.6886 0.6898 0.6999 0.7323 0.7721 0.7956; 0.2005 0.1121 0.1207 0.1605 0.4556 0.5022 0.6553 0.6673 0.6798 0.7023 0.7521 0.7756; 0.2123 0.1257 0.1343 0.2079 0.5579 0.5716 0.7059 0.7145 0.7205 0.7401 0.8019 0.8136]; threshold=[0 1;0 1;0 1;0 1;0 1;0 1; 0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1;0 1]; net=newff(threshold,[31, 12],{'tansig','logsig'},'traunlm'); net.trainParam.epochs=1000; net.trainParam.goal=0.01; LP.lr=0.1; net=train(net,P,T); P_test=[0.2123 0.1257 0.1343 0.2079 0.5579 0.5716 0.7059 0.7145 0.7205 0.7401 0.8019 0.8136 0.2317 0.2936 0]; Out=sim(net,P_test); X=[0.2119 0.1215 0.1621 0.2161 0.6171 0.6159 0.7155 0.7201 0.7243 0.7298 0.8179 0.8229]; plot(1:12,X-out) 我用的是MATLAB 2014a, 运行之后显示: 警告: NEWFF used in an obsolete way. > In obs_use at 17 In newff>create_network at 126 In newff at 101 See help for NEWFF to update calls to the new argument list. 错误使用 network/subsasgn>network_subsasgn (line 553) "trainFcn" cannot be set to non-existing function "traunlm". 出错 network/subsasgn (line 13) net = network_subsasgn(net,subscripts,v,netname); 出错 newff>new_5p0 (line 300) net.trainfcn = btf; 出错 newff>create_network (line 127) net = new_5p0(varargin{:}); 出错 newff (line 101) out1 = create_network(varargin{:}); |
» 猜你喜欢
今年春晚有几个节目很不错,点赞!
已经有6人回复
基金正文30页指的是报告正文还是整个申请书
已经有3人回复
球磨粉体时遇到了大的问题,请指教!
已经有15人回复
过年走亲戚时感受到了所开私家车的鄙视链
已经有5人回复
情人节自我反思:在爱情中有过遗憾吗?
已经有5人回复
江汉大学解明教授课题组招博士研究生/博士后
已经有3人回复
zhoufang6885
金虫 (小有名气)
- 应助: 1 (幼儿园)
- 金币: 1592.6
- 红花: 4
- 帖子: 231
- 在线: 178.5小时
- 虫号: 3015349
- 注册: 2014-03-04
- 专业: 制造系统与自动化
2楼2016-11-11 10:00:45

3楼2017-02-09 21:39:55
summerfox008
新虫 (正式写手)
- 应助: 1 (幼儿园)
- 金币: 21.8
- 散金: 10
- 红花: 6
- 帖子: 360
- 在线: 146.3小时
- 虫号: 4141276
- 注册: 2015-10-13
- 专业: 光学
4楼2017-02-25 10:56:29
5楼2017-07-05 16:19:14
6楼2017-07-05 16:28:35













回复此楼
