code for prediction in artificial neural network and extreme learning machine is same?
Mostrar comentarios más antiguos
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 comentario
Greg Heath
el 3 de Abr. de 2017
Please format so the code will run if cut and pasted in the command line
Greg
Respuesta aceptada
Más respuestas (1)
Heba Osman
el 17 de Feb. de 2018
0 votos
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 !
Categorías
Más información sobre Networks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
