MAE and RMSE in percentage

9 次查看(过去 30 天)
stelios loizidis
stelios loizidis 2021-7-19
Hello,
I have the following question: I want to calculate the MAE and RMSE in percentage. The following code gives the correct result?
MAE_Perc=mae(True-Predict/.True);
RMSE_Perc=sqrt(mse(Tru-Predict)/.True);

回答(1 个)

KSSV
KSSV 2021-7-19
MAE_Perc=mae((True-Predict)/.True); % <-- bracket needed here
RMSE_Perc=sqrt(mse(Tru-Predict)/.True);
  1 个评论
WELTON DUQUE
WELTON DUQUE 2022-4-12
RMSE_Perc=sqrt(mse(Tru-Predict)/.True); %<-- That "dot" after the division slash is wrong
And if we change to "./", the result in a vector.
So, how to obtain just on value representing the RMSE%?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by