资源简介
粒子群算法PSO和万有引力算法GSA结合优化FNN神经网络进行标准数据集的分类,可运行

代码片段和文件信息
% Traning Feed-forward Neural Networks using Grey Wolf Optimizer %
% %
% Developed in MATLAB R2011b(7.13) %
% %
% Author and programmer: Seyedali Mirjalili %
% %
% e-Mail: ali.mirjalili@gmail.com %
% seyedali.mirjalili@griffithuni.edu.au %
% %
% Homepage: http://www.alimirjalili.com %
% %
% Main paper: S. MirjaliliHow effective is the Grey Wolf %
% optimizer in training multi-layer perceptrons %
% Applied Intelligece in press 2015 %
% http://dx.doi.org/10.1007/s10489-014-0645-7 %
% %
% This function containts full information and implementations of the
% datasets
% lb is the lower bound: lb=[lb_1lb_2...lb_d]
% up is the uppper bound: ub=[ub_1ub_2...ub_d]
% dim is the number of variables (dimension of the problem)
function [lbubdimfobj] = Get_Functions_details(F)
switch F
case ‘F1‘
fobj=@MLP_XOR
lb=-10;
ub=10;
dim=36;
case ‘F2‘
fobj = @MLP_Baloon;
lb=-10;
ub=10;
dim=55;
case ‘F3‘
fobj=@MLP_Iris
lb=-10;
ub=10;
dim=75;
case ‘F4‘
fobj=@MLP_Cancer
lb=-10;
ub=10;
dim=209;
case ‘F5‘
fobj=@MLP_Heart
lb=-10;
ub=10;
dim=1081;
case ‘F6‘
fobj=@MLP_Sigmoid
lb=-10;
ub=10;
dim=46;
case ‘F7‘
fobj=@MLP_Cosine
lb=-10;
ub=10;
dim=46;
case ‘F8‘
fobj=@MLP_Sine
lb=-10;
ub=10;
dim=46;
case ‘F9‘
fobj=@MLP_Sphere
lb=-10;
ub=10;
dim=61;
end
end
function o=MLP_Baloon(solution)
load baloon.txt
x=sortrows(baloon2);
%I2=x(1:1501:4);
I2(:1)=x(1:201);
I2(:2)=x(1:202);
I2(:3)=x(1:203);
I2(:4)=x(1:204);
T=x(1:205);
Hno=9;
dim = 6*9+1; % Dimension of the problem
o = 0;
for ww=1:45
W(ww)=solution(1ww);
end
for bb=46:55
B(bb-45)=solution(1bb);
end
fitness=0;
for pp=1:20
actualvalue=my_simulate(491WBI2(pp:));
fitness=fitness+(T(pp)-actualvalue)^2;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 218 2011-06-05 12:52 NNGWO\Baloon.txt
文件 20586 2011-06-06 16:31 NNGWO\Cancer.txt
文件 10212 2015-07-26 01:29 NNGWO\Get_Functions_details.m
文件 4178 2015-07-26 01:29 NNGWO\GWO.m
文件 438013 2015-02-20 21:31 NNGWO\GWOMLP.png
文件 3758 2011-06-04 16:01 NNGWO\Heart.txt
文件 1703 2015-07-26 01:34 NNGWO\initialization.m
文件 2850 2010-10-14 01:44 NNGWO\Iris.txt
文件 1319 2015-07-26 01:34 NNGWO\license.txt
文件 15858 2015-07-26 00:22 NNGWO\main.asv
文件 14453 2015-07-26 01:37 NNGWO\main.m
文件 1192 2015-07-26 01:35 NNGWO\My_sigmoid.m
文件 1555 2015-07-26 01:28 NNGWO\my_simulate.m
文件 1378 2015-07-26 01:34 NNGWO\my_simulate_2_inputs.m
- 上一篇:历年的CISP试题及答案
- 下一篇:无线充电的几种方式
相关资源
- 技术基础科学领域科技创新群体的科
- 虚拟化架构助力苏州地税创新IT基础架
- 记苏州地税创新IT基础架构应用
- 创新SoundBlaster系列声卡ALchemy炼金术辅
- 论高校创新创业教育改革的新生态
- 我国大学创新创业教育存在的问题与
- IBM 闪存高性能助力企业业务创新
- 满足企业需求惠普创新推出虚拟库系
- 学生科技创新室的实践与探索
- 高校图书馆建筑设计理念的创新与发
- 基于市场导向的高新技术产业技术创
- 论人肉搜索的过程分析及其创新
- 创新眼镜店管理系统2016破解版
- 自学编程创新意:livecoding.tv实时直播
- 科技创新管理系统
- 中国 CIO: 从 IT 支持到领航创新
- 低碳研究院两个集团科技创新项目顺
- 城镇化水平对城市创新能力的影响研
- q形变的AdS5×S5时空中的全息尖刺威
- 外资质量对内资企业创新的影响:基
- FDI对我国制造业内资企业自主创新能
- 创新KX3538声卡驱动程序 v5.1 官方版_
- 欧洲机器人技术研发的创新战略初探
- 高校协同创新科研组织模式探索
- 中外新能源汽车产业技术创新比较分
- 基于创新人才培养的高校知识产权发
- 论文研究 - 众包创新虚拟社区用户角
- 创新7.1声卡效果有26个效果文件
- 环境规制对环保技术创新影响的实证
- 环境规制下技术创新驱动的生态补偿
评论
共有 条评论