Neural Network Tool Box

1 visualización (últimos 30 días)
Unnikrishnan PC
Unnikrishnan PC el 24 de Oct. de 2012
I am working on a classification problem and the codes are written in m files. I am calling net=newff(....) within the m file.Once the network is trained, How to save the net? How to access the net weights?

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 24 de Oct. de 2012
What version are you using? We recommend using feedforwardnet.
If you run the example from the doc for feedforwardnet, you can access the net weights:
net.InputWeights
net.LayerWeights
And it can be saved to a *.mat file the same way you save any variable.
  3 comentarios
Greg Heath
Greg Heath el 25 de Oct. de 2012
%What version are you using? We recommend using feedforwardnet.
PATTERNNET is more appropriate for classification
%If you run the example from the doc for feedforwardnet, you can access the net weights:
%net.InputWeights
%net.LayerWeights
No. The correct syntax is
IW = net.IW{:,:}
LW = net.LW{:,:}
b = net.b{:,:}
%And it can be saved to a *.mat file the same way you save any variable.
Correct.
Greg
Greg Heath
Greg Heath el 25 de Oct. de 2012
Why did you put a previously asked question in this post as a comment?
See the other post for my answer.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by