code for prediction in artificial neural network and extreme learning machine is same?
Mostra commenti meno recenti
i have this code of prediction i want to know it can be used for prediction of any thing like disease, weather etc. please help
function scores = elmPredict( X, inW, bias, outW ) % FUNCTION predicts the labels of some testing data using a trained Extreme % Learning Machine. % % scores = elmPredict( X, inW, bias, outW ); % % INPUT : % X - data patterns (column vectors) % inW - input weights vector (trained model) % bias - bias vector (trained model) % outW - output weights vector (trained model) % % OUTPUT : % scores - prediction scores on the data %
% number of test patterns nTestData = size( X, 2 );
% compute the pre-H matrix preH = inW * X;
% build the bias matrix biasM = repmat( bias, 1, nTestData );
% update the pre-H matrix preH = preH + biasM;
% apply the activation function H = 1 ./ (1 + exp(-preH));
% compute prediction scores scores = (H' * outW)';
1 Commento
Greg Heath
il 3 Apr 2017
Please format so the code will run if cut and pasted in the command line
Greg
Risposta accettata
Più risposte (1)
Heba Osman
il 17 Feb 2018
0 voti
could you show the implementation of the elmPredict function please ? i already used the extreme learning machine function with my data but i can't predict future values !
Categorie
Scopri di più su Networks in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
