MAE and RMSE in percentage
9 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
回答(1 个)
KSSV
2021-7-19
MAE_Perc=mae((True-Predict)/.True); % <-- bracket needed here
RMSE_Perc=sqrt(mse(Tru-Predict)/.True);
1 个评论
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 Center 和 File 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!