⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bp5.m

📁 MATLAB神经网络工具箱BP算法的比较
💻 M
字号:
P = [0 1 2 3 4 5 6 7 8 9 10];
T = [0 1 2 3 4 3 2 1 2 3 4];
net = newff([0 10],[4,1],{'tansig','purelin'},'trainlm');
Y = sim(net,P);
figure;
plot(P,T,P,Y,'o')
net.trainParam.epochs =10000;
net.trainparam.show=10;
net.trainparam.lr=0.05;
net.trainparam.goal=0.001;
net = train(net,P,T);
Y = sim(net,P);
figure;
plot(P,T,P,Y,'o')  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -