Re-implementing a Neural Network from matlabs Toolbox as an mfile
Afficher commentaires plus anciens
Hi,
I have a problem where I have trained a 10 neuron single layer network with three inputs and two outputs and gotten good results but need to re implement the evaluation function of the network as a standalone file. That is, I want to take the information stored in the neural network object, weights etc., and hardcode it in to a function.
The naive way (schematicaly described)
outputsFromHidden = activationFunctionHidden(inputWeights*inputs + inputBias) networkOutput = activationFunctionOutput(hiddenWeights*outputsFromHidden + outputBias)
does not work, and I guess that there are some input rescaling, and possibly other things going on in the evaluation function of the NN-object in matlab.
Does anyone know the exact computational flow of the evaluation function (i.e output = net(input) ) and where in the NN object one finds the necessary values?
Best Regards, Robert
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!