Help using MSE or MAE

12 次查看(过去 30 天)
Rafa
Rafa 2011-11-13
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 个评论
Rafa
Rafa 2011-11-15
A question to the more experienced.
The higher the MSE, the worse the performance of the network, correct?

请先登录,再进行评论。

采纳的回答

Greg Heath
Greg Heath 2011-11-16
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

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by