code for prediction in artificial neural network and extreme learning machine is same?
Afficher commentaires plus anciens
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 commentaire
Greg Heath
le 3 Avr 2017
Please format so the code will run if cut and pasted in the command line
Greg
Réponse acceptée
Plus de réponses (1)
Heba Osman
le 17 Fév 2018
0 votes
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 !
Catégories
En savoir plus sur Networks dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
