资源简介
极限学习机matlab以及Python程序,最近几年出现的较为新的人工神经网络算法,有人脸识别的例子,可运行。
代码片段和文件信息
function [TrainingTime TestingTime TrainingAccuracy TestingAccuracy] = elm(TrainingData_File TestingData_File Elm_Type NumberofHiddenNeurons ActivationFunction)
% Usage: elm(TrainingData_File TestingData_File Elm_Type NumberofHiddenNeurons ActivationFunction)
% OR: [TrainingTime TestingTime TrainingAccuracy TestingAccuracy] = elm(TrainingData_File TestingData_File Elm_Type NumberofHiddenNeurons ActivationFunction)
%
% Input:
% TrainingData_File - Filename of training data set
% TestingData_File - Filename of testing data set
% Elm_Type - 0 for regression; 1 for (both binary and multi-classes) classification
% NumberofHiddenNeurons - Number of hidden neurons assigned to the ELM
% ActivationFunction - Type of activation function:
% ‘sig‘ for Sigmoidal function
% ‘sin‘ for Sine function
% ‘hardlim‘ for Hardlim function
% ‘tribas‘ for Triangular basis function
% ‘radbas‘ for Radial basis function (for additive type of SLFNs instead of RBF type of SLFNs)
%
% Output:
% TrainingTime - Time (seconds) spent on training ELM
% TestingTime - Time (seconds) spent on predicting ALL testing data
% TrainingAccuracy - Training accuracy:
% RMSE for regression or correct classification rate for classification
% TestingAccuracy - Testing accuracy:
% RMSE for regression or correct classification rate for classification
%
% MULTI-CLASSE CLASSIFICATION: NUMBER OF OUTPUT NEURONS WILL BE AUTOMATICALLY SET EQUAL TO NUMBER OF CLASSES
% FOR EXAMPLE if there are 7 classes in all there will have 7 output
% neurons; neuron 5 has the highest output means input belongs to 5-th class
%
% Sample1 regression: [TrainingTime TestingTime TrainingAccuracy TestingAccuracy] = elm(‘sinc_train‘ ‘sinc_test‘ 0 20 ‘sig‘)
% Sample2 classification: elm(‘diabetes_train‘ ‘diabetes_test‘ 1 20 ‘sig‘)
%
%%%% Authors: MR QIN-YU ZHU AND DR GUANG-BIN HUANG
%%%% NANYANG TECHNOLOGICAL UNIVERSITY SINGAPORE
%%%% EMAIL: EGBHUANG@NTU.EDU.SG; GBHUANG@IEEE.ORG
%%%% WEBSITE: http://www.ntu.edu.sg/eee/icis/cv/egbhuang.htm
%%%% DATE: APRIL 2004
%%%%%%%%%%% Macro definition
REGRESSION=0;
CLASSIFIER=1;
%%%%%%%%%%% Load training dataset
train_data=load(TrainingData_File);
T=train_data(:1)‘;
P=train_data(:2:size(train_data2))‘;
clear train_data; % Release raw training data array
%%%%%%%%%%% Load testing dataset
test_data=load(TestingData_File);
TV.T=test_data(:1)‘;
TV.P=test_data(:2:size(test_data2))‘;
clear test_data; % Release raw testing data array
NumberofTrainingData=size(P2);
NumberofTestingData=size(TV.P2);
NumberofInputNeurons=size(P1);
if Elm_T
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 627110 2014-06-12 12:50 diabetes.zip
文件 9279 2012-07-20 23:11 ELM.m
文件 2711 2014-06-12 12:42 ELM.zip
文件 2236 2014-06-12 12:41 elm_kernel.zip
文件 3540 2014-06-12 12:46 elm_train_predict.zip
文件 13656 2014-06-12 12:52 Python-ELM-master.zip
文件 786 2014-06-12 12:50 sinc.zip
文件 47865 2014-06-12 12:43 ELM_TEST1\sinc_test.zip
文件 54179 2014-06-12 12:43 ELM_TEST1\sinc_train.zip
文件 4353 2014-06-12 12:46 ELM_TEST2\diabetes_test.zip
文件 11588 2014-06-12 12:45 ELM_TEST2\diabetes_train.zip
相关资源
- SS-US-ELM 最新极限学习机程序
- ELM_kernel 核极限学习机
- 极端学习机分类(ELM)函数
- ELM 极限学习机在matlab中elm函数调用示
- elmtrain 将整个数据集中的103个样本随
- elmd 在lmd中加入白噪声对信号进行分析
- elm极限学习机预测风速
- MATLAB采用ELM进行回归和预测代码
- Elman神经网络法预测风电功率 (elma
- 核函数的ELM算法
- EELM
- ELMAN 详细介绍了ELMAN这种神经网络的构
- ELMPliterature 极限学习机matlab源码及对
- ELM_EELM_YELM EELM是有效ELM的源码 (EEL
- 30-case-studies MATLAB神经网络30个案例分
- EI_ELM 极端学习机的改进算法
- FOA-ELM 算法思想是:1) 根据果蝇优化
- pso-elman 一个标准的Elman的程序外加一
- BA_ELM 用蝙蝠算法(BA)对极限学习机
- elm_kernel_trainapredict Kernel_ELM传说中的核
- PSO_ELM 运用粒子群算法对ELM算法进行优
- Elm_KElm Elm和KernelElm算法matlab实现
- DE_OS-ELM 用差分算法对在线惯序极限学
- EELM 增量式极限学习机的matlab源码
- Application-of-optimized-Elman-- 对量子粒子
- DE_ELM 用差分进化算法对极限学习机进
- Numerical-Methods-for-PDE 1. Helmholtz方程 及
- elm_kernel ELM 极限学习机的核函数 MAT
- GA-elman Elman神经网络回归模型
- MATLAB ELM+PCA人脸识别
评论
共有 条评论