资源简介
通过遗传算法对BP神经网络进行优化,包含所相关的函数,有数据集,可以直接运行

代码片段和文件信息
%读取数据
data=xlsread(‘data.xls‘);
%训练预测数据
data_train=data(1:113:);
data_test=data(118:123:);
input_train=data_train(:1:9)‘;
output_train=data_train(:10)‘;
input_test=data_test(:1:9)‘;
output_test=data_test(:10)‘;
%数据归一化
[inputnmininputmaxinputoutputnminoutputmaxoutput]=premnmx(input_trainoutput_train); %对p和t进行字标准化预处理
net=newff(minmax(inputn)[101]{‘tansig‘‘purelin‘}‘trainlm‘);
net.trainParam.epochs=100;
net.trainParam.lr=0.1;
net.trainParam.goal=0.00001;
%net.trainParam.show=NaN
%网络训练
net=train(netinputnoutputn);
%数据归一化
inputn_test = tramnmx(input_testmininputmaxinput);
an=sim(netinputn);
test_simu=postmnmx(anminoutputmaxoutput);
error=test_simu-output_train;
plot(error)
k=error./output_train
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-08-09 20:59 GA-BP\
文件 772 2009-08-31 23:41 GA-BP\BP.m
文件 420 2009-08-16 22:48 GA-BP\Code.m
文件 1556 2009-08-31 23:41 GA-BP\Cross.m
文件 1158 2009-08-31 23:41 GA-BP\Decode.m
文件 4170 2016-08-10 19:05 GA-BP\Genetic.asv
文件 4170 2016-08-10 19:08 GA-BP\Genetic.m
文件 1602 2009-11-12 19:20 GA-BP\Mutation.m
文件 825 2010-05-26 00:10 GA-BP\Select.m
文件 124583 2016-08-06 10:16 GA-BP\a.DAT
文件 46404 2009-09-18 14:23 GA-BP\data.mat
文件 986 2016-08-10 19:00 GA-BP\fun.m
文件 957 2016-08-09 13:29 GA-BP\fun.m.bak
文件 291 2009-08-31 23:41 GA-BP\test.m
文件 25517 2016-08-06 10:17 GA-BP\x.DAT
相关资源
- Wolfram Mathematica 矩阵初等变换函数(
- Crystal Impact Match!2.1.3 试用延长
- 编程实现二维DCT变换
- 改进的BP神经网络算法
- 图像二值化
- 用FFT对信号进行频谱分析
- 基于bp神经网络的表情识别
- Tone-Reservation
- QGA 量子遗传算法
- 基于遗传算法的排课系统
- 差分形式的阻滞增长模型
- 遗传算法的M文件
- c 编写的 矩阵 matrix 类源码
- animatedgif
- Cellular automata Model: an Adaptive Approach
-
Differential ex
pression patterns of Toll-li - Furan-BDOPV Donor-Acceptor Polymers with Plana
- 超强内存卡格式化工具uFormat
- 由s = 7 $$ \\ sqrt {\\ mathrm {s}} = 7 $$ TeV
- 用ATLAS测量在$$ \\ sqrt {s _ {\\ mathrm {N
- 搜索希格斯玻色子衰变为bb的暗物质的
- LHC生命周期前沿的非弹性暗物质:A
- 遗传算法PPT(Genetic_Algorithms.ppt)
- ABAQUS子程序UMAT(11页)
- 风味动态域壁中lt;mathgt; mrow mn 2 / mn
- N $$ \\ mathcal {N} $$ = 2个同质超重力的单
- N = 2 $$ \\ mathcal {N} = 2 $$超重力和部分
- N = 4 $$ \\ mathcal {N} = 4 $$ Chern-Simons-ma
- 遗传算法的堆石料非线性本构模型参
- USRP X300/X310的原理图
评论
共有 条评论