How to increase maximum number of epochs in Neural Network toolbox?

64 ビュー (過去 30 日間)
Liril Silvi
Liril Silvi 2024 年 8 月 19 日
編集済み: Umang Pandey 2024 年 8 月 19 日
Hello, as I am traning large set of data and with large number of layer size, the default 1000 epoch are not enough. I want to increase these number of epochs but I do not see any option in the neural network fitting toolbox. I have seen somewhere that we can add that as line in MATLAB code, but I want to adjust that in the toolbox. Where can I find it?

採用された回答

Umang Pandey
Umang Pandey 2024 年 8 月 19 日
Hi Liril,
You can change the number of epochs in your neural net in the following manner:
% Example Network
net = fitnet(15);
[net,tr] = train(net,X,T); % initializing the training network for some data
net.trainParam.epochs=10000; % Setting the number of epochs.
Best,
Umang
  2 件のコメント
Liril Silvi
Liril Silvi 2024 年 8 月 19 日
Since, I am not very good at writing the entire script of matlab and I currently I know how to use GUI toolbox, can I know how to set number of epochs within the GUI toolbox?
Umang Pandey
Umang Pandey 2024 年 8 月 19 日
編集済み: Umang Pandey 2024 年 8 月 19 日
I am not sure how to do it in the GUI since the field is not editable.
If you want to understand how to write script for the neural net, you can refer to the following example :
The example shows how to import your dataset, and subsequently generate a neural net on that training data.
Let me know if you face any other issues.
Best,
umang

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by