Guardar y cargar una red nueronal entrenda

16 views (last 30 days)
Favor alguien me colabore con este problema que tengo. Cree una red neuronal de nombre "net" que simula una función trigonométrica en el Command Window de Matlab, la entrene y simule, todo ok, pero quiero guardarla como archivo para usarla de nuevo mas adelante. Utilice el comando save net y se creo un archivo net.mat . Para cargarlo de nuevo utilice el comando load net y se cargo al archivo en el Command Window, pero viendo en Workspace, al archivo net.mat se guardo todo lo que había en el Workspace anterior (la red propiamente dicha "net", los vectores de entrenamiento y otras variable que cree para la simulación). Como puedo guardar solo la red neuronal "net", probé guardar la red cambiando el nombre save redes,'net';, pero igual se guarda todo lo que hay en el Workspace
  2 Comments
mizuki
mizuki on 26 Oct 2016
Summary: Edwin wanted to save the variable net, which is the output of train function in Neural Network training. However, when he saves the variable with SAVE command, it saves all the variables in the workspace. What he wants to do is saving only the variable, net.
My answer was to specify the variable as the second input argument in SAVE function. So, use
>> save('net.mat', 'net')
instead of
>> save('net')

Sign in to comment.

Accepted Answer

mizuki
mizuki on 25 Oct 2016
Usas
>> save('net.mat', 'net')
en lugar de
>> save('net')
El argumento segundo es el variable que quieres guardar especificamente.
Veas el documento - SAVE:

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!