Re-implementing a Neural Network from matlabs Toolbox as an mfile

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

 Akzeptierte Antwort

Greg Heath
Greg Heath am 6 Mai 2013

0 Stimmen

Search ANSWERS using
tsettings
Hope this helps.
Thank you for formally accepting my answer
Greg

Weitere Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by