Borrar filtros
Borrar filtros

what is the purpose of the last line?

6 visualizaciones (últimos 30 días)
Shaila parvin
Shaila parvin el 6 de Jul. de 2013
net = newff(Iin, Target, 10, {'logsig' 'logsig'}, 'trainscg');
net.trainParam.perf = 'sse';
net.trainParam.epochs = 500;
net.trainParam.goal = 1e-5;
net.trainParam.lr=0.15;
net.trainParam.mc=0.8;
net = init(net);
I know init is used for initializing a ts-collection object with new time or new time series. So, is it used in the last line to collect the objects of all net.trainparam lines? I don’t understand it. Please help me.

Respuesta aceptada

Greg Heath
Greg Heath el 8 de Jul. de 2013
Editada: Greg Heath el 8 de Jul. de 2013
init initializes a net with random weights.
However, the command is totally unnecessary because newff is self-initializing.
So: Delete it and don't worry about it.
However, I am concerned about why you are not using MATLAB defaults for your design. Try
net = newff(Iin,Target) % NO SEMICOLON
Then see the defaults that MATLAB gives you free of charge.
Compare with the ones you have chosen
Also try the code in
help newff
Hope this helps.
Thank you for formally accepting my answer
Greg

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by