没有合适的资源?快使用搜索试试~ 我知道了~
简单的BP学习算法的MATLAB例程供大家学习
资源推荐
资源详情
资源评论
l=0.05;
n=30;
cells=6;
times=3000;
x=(linspace(0,2*pi,n));
t=sin(x);
w1=rand(cells,1)*0.05;
w2=rand(1,cells)*0.05;
yw1=rand(cells,1)*0.05;
yw2=rand*0.05;
y=rand(1,n)*0.05;
counts=1;
e=zeros(1,times);
for i=1:times
ei=0;
for a=1:n
net1=w1*x(a)-yw1;
out=logsig(net1);
net2=w2*out-yw2;
y(a)=net2;
det2=t(a)-y(a);
det1=((det2*(w2)').*out).*(1-out);
w1=w1+det1*x(a)*1;
w2=w2+(det2*out)'*1;
yw1=-det1*1+yw1;
yw2=-det2*1+yw2;
资源评论
weitian5
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功