没有合适的资源?快使用搜索试试~ 我知道了~
clc clear all close all aa=xlsread('sy1.xls'); at=[{'日期:2005-6-30至2006-12-1'},{'开盘价'},{'成交量'},{'最高价'},{'最低价'},{'收盘价'}]; ys='brgmcyk'; pd=aa(1:330,:)'; [pn,minp,maxp]=premnmx(pd); pr=[pn(:,1:320);pn(:,2:321);pn(:,3:322);pn(:,4:323);pn(:,5:324)]; % px=[pn(:,1:300);pn(:,2:301);pn(:,3:302);pn(:,4:303);pn(:,5:304)]; px=pr(:,1:300); py=pn(5,6:305);
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![m](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
clc
clear all
close all
aa=xlsread('sy1.xls');
at=[{'日期:2005-6-30至2006-12-1'},{'开盘价'},{'成交量'},{'最高价'},{'最低价'},{'收盘价'}];
ys='brgmcyk';
pd=aa(1:330,:)';
[pn,minp,maxp]=premnmx(pd);
pr=[pn(:,1:320);pn(:,2:321);pn(:,3:322);pn(:,4:323);pn(:,5:324)];
% px=[pn(:,1:300);pn(:,2:301);pn(:,3:302);pn(:,4:303);pn(:,5:304)];
px=pr(:,1:300);
py=pn(5,6:305);
pX=pr(:,301:320)
pY=pd(5,306:325); %pn(5,306:325);
net1=newff(minmax(px),[16,1],{'tansig','purelin'},'trainlm'); %{'tansig','logsig'},'traingdx'); {'logsig','purelin'}
net1.trainParam.show=1;
net1.trainParam.epochs=2000;
net1.trainParam.goal=0.001;
net1.trainParam.max_fail=5;
net1=init(net1);
[net1,tr,Y,E]=train(net1,px,py);
s=sim(net1,px);
er=py-s;
figure
clear all
close all
aa=xlsread('sy1.xls');
at=[{'日期:2005-6-30至2006-12-1'},{'开盘价'},{'成交量'},{'最高价'},{'最低价'},{'收盘价'}];
ys='brgmcyk';
pd=aa(1:330,:)';
[pn,minp,maxp]=premnmx(pd);
pr=[pn(:,1:320);pn(:,2:321);pn(:,3:322);pn(:,4:323);pn(:,5:324)];
% px=[pn(:,1:300);pn(:,2:301);pn(:,3:302);pn(:,4:303);pn(:,5:304)];
px=pr(:,1:300);
py=pn(5,6:305);
pX=pr(:,301:320)
pY=pd(5,306:325); %pn(5,306:325);
net1=newff(minmax(px),[16,1],{'tansig','purelin'},'trainlm'); %{'tansig','logsig'},'traingdx'); {'logsig','purelin'}
net1.trainParam.show=1;
net1.trainParam.epochs=2000;
net1.trainParam.goal=0.001;
net1.trainParam.max_fail=5;
net1=init(net1);
[net1,tr,Y,E]=train(net1,px,py);
s=sim(net1,px);
er=py-s;
figure
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
fkyt2009
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)