When i tried to change the training function in nntrain , from trainlm to traindx, i get the error :

3 ビュー (過去 30 日間)
When i tried to change the training function in nntrain , from trainlm to traindx, i get the following error :
Error using fitnet (line 73)
FCN is not the name of a function on the MATLAB path.
I used the below code for changing learning rate and momemtum .
trainFcn = 'traindx'; % Levenberg-Marquardt backpropagation.
% Create a Fitting Network
hiddenLayerSize =10;
net.trainParam.lr = 0.5;
net.trainParam.mc=0.5;
net = fitnet(hiddenLayerSize,trainFcn);
kindly advice

採用された回答

Walter Roberson
Walter Roberson 2020 年 10 月 27 日
The message is correct. Mathworks does not supply any function named traindx .
It does, however, supply a function named traingdx
  1 件のコメント
NN
NN 2020 年 10 月 27 日
thank you.It worked.
It shows more error when i plot.How can i reduce error

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePattern Recognition and Classification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by