mr.mo asked . 2021-07-28

What kind of RMSE should I choose to show the capability

What kind of RMSE should I choose to show the capability of function approximation with Neural Networks ? 

This Data set shown below is one of My Data set for function approximation with Neural Network in MATLAB. The left column is the Target vector and the right column is the model output vector.
 
 
 
 -0.29039678  -0.212428117
  0.149798734  0.268486256
  0.851351352  0.563358782
  -0.694364578  -0.652148947
  -0.326624496  -0.468058466
  -0.019838988  0.209298441
  -0.765669926  -0.828415796
  -0.133410006  0.003000269
  -0.122484186  -0.073538329
  -0.471535366  -0.376903371
  0.181426106  0.365548334
  0.186889016  0.37947765
  -0.260782058  -0.024155069
  -0.215353652  -0.371639751
  -0.062967222  0.092607096
  -0.461759632  -0.56834877
  0.074468086  0.154155435
  0.624496838  0.529777368
  -0.197814836  -0.096543508
  -0.247268546  -0.136442585
  0.106382978  0.28668492
  -0.791259344  -0.718599416
  -0.532489936  -0.572352826
  -0.006325474  -0.010056861
  0.48706153  0.485766679
  -0.631397354  -0.619362709
  -0.815698678  -0.823629139
  0.272857964  0.354840024
  0.080506038  0.220713202
and I want to show the capability of my model by calculating the RMSE value between the Target & Output vectors in MATLAB .
 
my question is that what kind of RMSE should I use ?
 
The RMSE obtained by fitlm function
 
 
lm=fitlm(x,y,'linear');

or RMSE obtained by the formula shown below?

RMSE = sqrt(sum((data(:) - estimate (:)).^2) / numel(data));
and if I use the RMSE obtained by fitlm function, Is the RMSE value true ??
 
because the vector created by
 
    lm.predict(x)

and my Output vector are different.

rmse , regression , neural networks , fitlm

Expert Answer

Prashant Kumar answered . 2024-12-21 00:39:22

1. The default performance function of the regression NNs NEWFIT (calls the generic NEWFF; both are obsolete but still available) and FITNET (current: calls the generic FEEDFORWARDNET) is mean-square-error, MSE, which is scale dependent.
 
2. However, it is better to use the SCALE INDEPENDENT NORMALIZED MSE, NMSE. MSE is normalized by the MSE of the simplest NN model: the one whose output is just a constant, INDEPENDENT OF THE INPUT! In order to minimize that MSE, the constant must be the average target variance.
 
In recent threads I have used the notation vart1. In earlier threads I have used the notation MSE00:
 
 NMSE = MSE/MSE00 = MSE/vart1

where

 MSE00 = vart1 = mean(var(target',1))

3. This is not a frivolous choice: NMSE is the fraction of the average target variance that is NOT modelled by the net. Conversely, the "Coefficient of Variation" also known as "R-squared" defined by

 Rsq = 1- NMSE
is the fraction of the average target variance that IS modelled by the net!
 
My typical choice of the regression design goal is
 
MSEgoal = 0.01*vart1

which yields Rsq = 0.99 (Rsq = 1 is a perfect fit!).


Not satisfied with the answer ?? ASK NOW

Frequently Asked Questions

MATLAB offers tools for real-time AI applications, including Simulink for modeling and simulation. It can be used for developing algorithms and control systems for autonomous vehicles, robots, and other real-time AI systems.

MATLAB Online™ provides access to MATLAB® from your web browser. With MATLAB Online, your files are stored on MATLAB Drive™ and are available wherever you go. MATLAB Drive Connector synchronizes your files between your computers and MATLAB Online, providing offline access and eliminating the need to manually upload or download files. You can also run your files from the convenience of your smartphone or tablet by connecting to MathWorks® Cloud through the MATLAB Mobile™ app.

Yes, MATLAB provides tools and frameworks for deep learning, including the Deep Learning Toolbox. You can use MATLAB for tasks like building and training neural networks, image classification, and natural language processing.

MATLAB and Python are both popular choices for AI development. MATLAB is known for its ease of use in mathematical computations and its extensive toolbox for AI and machine learning. Python, on the other hand, has a vast ecosystem of libraries like TensorFlow and PyTorch. The choice depends on your preferences and project requirements.

You can find support, discussion forums, and a community of MATLAB users on the MATLAB website, Matlansolutions forums, and other AI-related online communities. Remember that MATLAB's capabilities in AI and machine learning continue to evolve, so staying updated with the latest features and resources is essential for effective AI development using MATLAB.

Without any hesitation the answer to this question is NO. The service we offer is 100% legal, legitimate and won't make you a cheater. Read and discover exactly what an essay writing service is and how when used correctly, is a valuable teaching aid and no more akin to cheating than a tutor's 'model essay' or the many published essay guides available from your local book shop. You should use the work as a reference and should not hand over the exact copy of it.

Matlabsolutions.com provides guaranteed satisfaction with a commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been empanelled after extensive research and quality check.

Matlabsolutions.com provides undivided attention to each Matlab assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work done at the best price in industry.