MATLAB Answers

0

how to classify the data using extreme learning machine

Asked by Nivhedhitha on 17 Aug 2013
Latest activity Edited by berghout tarek on 2 Oct 2018 at 7:02

pls help me how to train and test data and classify using extreme learning machine. i have downloaded the code from net.but i cant get the result. thank you.

  0 Comments

Sign in to comment.

5 Answers

Answer by kash
on 17 Aug 2013
 Accepted Answer

You can check this link for ELM source codes

http://www.ntu.edu.sg/home/egbhuang/elm_kernel.html

  3 Comments

i am using the codes you specified.but i cant understand where and how to give the target. i have 20*1 matrix for training and having 20 hidden neurons.i should get 20*1 matrix for target.but it generates 20*20 matrix. thank you..

ELM code specified gives you the accuracies of training and testing,and time taken,you have to specify the training and test data with the kenrels you need

in elm_kernel code they make kind of sorting of targets

sorted_target=sort(cat(2,T,TV.T),2);

so it would be difficult to restore order of predicted classes later. Do you have maybe a code which produces predicted classes in proper ordrer ??

Sign in to comment.


Answer by berghout tarek on 27 Sep 2018 at 7:55

I usually use the standard code version of ELM created bay G.-B. Huang, you can find at this link http://www.ntu.edu.sg/home/egbhuang/elm_codes.html, in training or testing files you must organize your file files according to the instruction that exist in the mat file, in each file dataset instances are organized horizontally which means that the parameters are reordered vertically, and the main point is that data labeled also must contained in the same file with features and you must reserve it in the first column in you data set.

  1 Comment

TV.T the testing samples TV the output of training samples the form of the is according to the type of ELM if ELM is in regression then the output will be real numbers representing the output value if it is classification then the result will be the number of class or its name.

Sign in to comment.


Answer by VIVEK
on 27 Mar 2015
Edited by VIVEK
on 27 Mar 2015

i need to design classifier on 169rows*8col features as one data set, i had downloaded above mentioned ELM code using that link,i don't know how to define the function and how to work this code please give some suggestion, thank you

  1 Comment

Well you can modify the code as per your convenience,like changing the format of the input data..and to run the algorithm you just need to call the function with proper no of hidden neuron and regularization parameter

Sign in to comment.


Answer by berghout tarek on 4 Feb 2018

in the training and testing files , you must reorder your observations like this: observation=target,attribute 01,attribute 2,..etc ELM algorithm can gives the performance during training and testing; ELM for classification can create a different targets for each class ,ex: [-1 1] for first class and [1 -1] for second class . if you want to see your sample class you must sort out the variable output TV.T; than compare it to the first target that generated during training TV;

  2 Comments

Can you please elaborate on sorted_target or reordering of training and testing sets. If data size is 132*152 then how 1st column is treated as target (as it signifies data only)?

if you have a training set of 132*152 of samples, firstly you have to divide it into two data sets the training and testing sets, generally the training set took 80% and 20% for testing, please follow these steps: 1-you must makes sure that each instances of your data is putted in raws and the parameters in columns 2-devide you set into two sets for example : the training set is an 100*152 samples and the testing set is 32*152 samples. 3- do not for get to bring the target colomn into the first colmn of the dataset first. 4-in the algorithm of Huang bin yang in case of regression the sort of variables of targets can not affect too much on the learning process. 5-than unleash the learning and testing processes. 6-notes : ELM machine dependes on solving a leanear problems using Moore-penerose method if x is the input and the target is y then : y=(G(x* input weigths))*output weigths. but during the test our goal is to determine the output weights than we should search for the best way to find it, Moore peneroose achieves butter results but if the number of neurons is huge. I hope that it is helpful and thanks

Sign in to comment.


Answer by berghout tarek on 13 Aug 2018
Edited by berghout tarek on 2 Oct 2018 at 7:02

if you choose your ELM network to be in regression type, that is in data set you are searching for a function that takes each instance X to the target Y,and Y represent a value for example: the image of X=(0.25 0.8 0.9) is 0.1. as a conclusion in leaner regression we are searching for an unknown function using labeled data (each instance has its own image) , unlike classification where we are searching for the class that this instance belongs to, and this class could be 1 or 2 or a or b (just an identity for the class) thank you very much

  4 Comments

Show 1 older comment

hi there. How elm will input data ,in which form? features or labels?. SaDE_ELM(Traingngfile, testing file, Elm_Type, numberofHiddenNeurons, Max_FES, Lbound, Ubound, NP, Max_Gen, F_par, CR, strategy, numst). i have used CNN to get features so now i have training features(1000*910) and test feature(1000*2114). Traininglabels(910*1) and Traininglabels(2114*1). currently i am passing training and testing feature .mat file but it is not working. Can you please help? thankyou in advance,

In ELM features are arranged in this manner [label ; input values]

@preksha do you have knowledge about the parameter values ? i have an error in numst parameter.

Sign in to comment.