what is the purpose of the last line?

1 Ansicht (letzte 30 Tage)
Shaila parvin
Shaila parvin am 6 Jul. 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.

Akzeptierte Antwort

Greg Heath
Greg Heath am 8 Jul. 2013
Bearbeitet: Greg Heath am 8 Jul. 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

Weitere Antworten (0)

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help 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