Question
Hello, I am training the neural network with input vector of 85*650 and target vector of 26*650. Here is the list of parameters that I have used net.trainParam.max_fail = 6; net.trainParam.min_grad=1e-5; net.trainParam.show=10; net.trainParam.lr=0.9; net.trainParam.epochs=13500; net.trainParam.goal=0.001; Number of hidden nodes=76 As you can see ,I have set the number of epochs to 13500. Is it OK to set the number of epochs to such a large number?. Performance goal is not reaching if the number of epochs is decreased and I am getting a bad classification while testing.
Expert Answer
Kshitij Singh
PhD Expert
Answered Nov 20, 2025
[ I N ] = size(input) % [ 85 130 ] [ O N ] = size(output) % [ 26 130 ] Ntrn = N - 2*round(0.15*N)% 90 Ntrneq = Ntrn*O % 2340 training equations
%Nw = (I+1)*H+(H_1)*O % unknown weights
% Ntrneq >> Nw, or equivalently, H << Hub where
Hub = -1+ceil((Ntrneq-O) / (I+O+1)) % 20
Try to minimize I and H while using as many defaults as possible.
I don't remember ever having to incease the default numepochs.
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related neural networks Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →