how to set goal in training parameter in nntool?

8 views (last 30 days)
network type- feed forward back propagation training function- trainlm adapting learning function- learngdm

Answers (1)

Jayanti
Jayanti on 3 Jul 2025
Hi Santosh,
From MATLAB R2022a "nntool" has been removed. Instead "nnstart" provides graphical interfaces that allow you to design and deploy fitting, pattern recognition, clustering, and time-series neural networks.
But as per MATLAB R2025a, I cannot find any direct way to set the goal through the GUI interface. But you can set the "goal" manually by generating the training code and modifying it:
Refer to the below steps for more details:
  • In the app, click "Generate Code" in the export section of toolstrip.
  • This opens a MATLAB script with all the network creation and training steps.
  • In that script, add below code to set "goal" before training the network.
% Set your desired goal value
net.trainParam.goal = 0.01;
You can also refer to the below link to check the version history of "nntool":

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!