Help using MSE or MAE

13 vues (au cours des 30 derniers jours)
Rafa
Rafa le 13 Nov 2011
Hi, I am using NNtoolbox of MatlabR2008a.
In my code,i am using the commands:
[net, tr] = train (net, p, t);
plotperform (tr)
And then, view the graph from the mistakes of training, validation and testing of the network. At the top of the chart is displayed at a time when the value was the best network performance.
I need help to know the best performance of the Network Test. I could confirm correct using the following commands:
y = sim (net, p)
e =t-y
perf = mse (e)
perf = mae (e)
I understand that the MAE would be the absolute error of the network implementation and MSE would be the ratio of the square error. I will display in my work a chart with many configurations used and the erro founded.(MAE)
In the code, the performance function used is MSE.
Thank you and waiting for help.
  1 commentaire
Rafa
Rafa le 15 Nov 2011
A question to the more experienced.
The higher the MSE, the worse the performance of the network, correct?

Connectez-vous pour commenter.

Réponse acceptée

Greg Heath
Greg Heath le 16 Nov 2011
mae is the mean of the absolute values of the errors.
If you use mae for learning, then tabulate mae.
mse is the mean of the squares of the errors.
If you use mse for learning, the tabulate one or more of
1. Root-mean-square-error rmse =sqrt(mse)
2. Normalized mean-square-error nmse = mse/mse00
3. Coefficient of determination R^2 = 1 - nmse
where mse00 is the mse of the naive constant model that
always outputs the mean of the target, regardless of the input.
When the NNet model is better than the naive constant model,
0 < 100*R^2 <= 1 is often viewed as the % of target variance
that is "explained" by the net and R is considered the nonlinear
correlation coefficient between input and output.
Note that mae and rmse have the dimensions of the target and
are dependent on how the output is scaled; whereas nmse
and R are normalized and scale independent.
I favor using R^2. Search wikipedia for "coefficient of determination".
Also search comp.ai.neural-nets and comp.soft-sys.matlabin in Google Groups for
greg heath MSE00 R2
Hope this helps.
Greg

Plus de réponses (1)

Ash-Shu'ara
Ash-Shu'ara le 23 Avr 2023
how do use MAE for learning on my nntool????

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by