Default number of epochs

20 ビュー (過去 30 日間)
Ton Schomaker
Ton Schomaker 2012 年 9 月 19 日
編集済み: Walter Roberson 2016 年 7 月 12 日
Is it true that the default number of epochs in
[net, tr] = train(net,trainV,trainT)
is 1000?
When looking at help information on other training functions like trainlm it shows that default values of its training parameters are:
net.trainParam.epochs 100 Maximum number of epochs to train
Who can give a clear answer on this question. Thanks in advance, Ton S.
  1 件のコメント
Thomas Kanzig
Thomas Kanzig 2016 年 1 月 9 日
Its true my friend. You must insert a biggest number for obtain a better trainings.

サインインしてコメントする。

採用された回答

Greg Heath
Greg Heath 2012 年 9 月 20 日
編集済み: Walter Roberson 2016 年 7 月 12 日
In the good ol' days it used to be 100. Now it seems to be 1000.
The info in the documentation of trainlm, trainscg and probably others, needs to be updated.
clear all, clc,
x = randn(1,100);
t = x.^2;
net = newff(x,t,10);
trainfunc = net.trainFcn % trainlm
numepochs = net.trainParam.epochs % 1000
net = newfit(x,t,10);
trainfunc = net.trainFcn % trainlm
numepochs = net.trainParam.epochs % 1000
net = newpr(x,t,10);
trainfunc = net.trainFcn % trainscg
numepochs = net.trainParam.epochs % 1000
net = fitnet(10);
trainfunc = net.trainFcn % trainlm
numepochs = net.trainParam.epochs % 1000
net = patternnet(10);
trainfunc = net.trainFcn % trainscg
numepochs = net.trainParam.epochs % 1000
net = feedforwardnet(10);
trainfunc = net.trainFcn % trainlm
numepochs = net.trainParam.epochs % 1000
Hope this helps.
Thank you for officially accepting my answer.
Greg
  1 件のコメント
Greg Heath
Greg Heath 2012 年 9 月 20 日
The documentation in help trainlm and help trainscg contains these two statements:
1. Training occurs according to training parameters, with default values
2. Any or all of these can be overridden with parameter name/value argument pairs appended to the input argument list, or by appending a structure argument with fields having one or more of these names.
Athough doc traincsg and doc trainlm do not contain the second statement, they have the CORRECT VERSION of the first statement:
1. Training occurs according to training parameters, shown here with default values
Hope this helps.
Greg
P.S. Don't forget to formally accept my answer

サインインしてコメントする。

その他の回答 (1 件)

Ton Schomaker
Ton Schomaker 2012 年 9 月 20 日
Thanks Greg, then NN-documentation should be updated also....
Regards, Ton
  1 件のコメント
Greg Heath
Greg Heath 2012 年 9 月 20 日
You mistakenly used the ANSWER box instead of the COMMENT box.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by