Question
I have seen that MSE, SSE, MAE and SAE are possible training functions of a neural network in Matlab. Does it have relative square error available?
Expert Answer
Neeta Dsouza
PhD Expert
Answered Nov 20, 2025
The relative (i.e., NORMALIZED) square error is the ratio of the mean-square-error of the model, MSE, to the mean-square-error of the NAIVE CONSTANT-OUTPUT MODEL, MSE00. To minimize the mse of the latter model, the constant output is just the target mean. Correspondingly, MSE00 is just the average target variance.
MSE00 = mean(var(target',1)) Since MSE = mse(target-output); NMSE = MSE/MSE00 % "N"ormalized, or relative, mse.
The coefficient-of-variation or Rsquared, Rsq
Rsq = 1 - NMSE
is the fraction of target variance that is "explained by the model.
I have zillions of posts in both the NEWSGROUP and ANSWERS using the above variables. In some of them I have gone into more detail than I have here.
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 network Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →