Help using MSE or MAE

조회 수: 13 (최근 30일)
Rafa
Rafa 2011년 11월 13일
답변: Ash-Shu'ara 2023년 4월 23일
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