what is the purpose of each line of this code?

조회 수: 10 (최근 30일)
Shaila parvin
Shaila parvin 2013년 6월 29일
This is a code for training Neural Network:
function [net]=createff(Iin,Target)
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);
net = train(net, Iin, Target);
end
Please help me to understand this code.
  댓글 수: 1
Greg Heath
Greg Heath 2013년 7월 1일
1. delete the net = init statement because newff is self-initializing.
2. Before using a code specifying various parameter values that overwrite default values, it is probably worth your while to try using as many defaults as possible. See the examples in
help newff
doc newff

댓글을 달려면 로그인하십시오.

채택된 답변

Matthew Eicholtz
Matthew Eicholtz 2013년 6월 29일
The first line creates a feed-forward backpropagation network. Type this in the command window to learn more:
help newff
The last two lines initialize and train the network.
help init
help train

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by