MAE and RMSE in percentage

14 vues (au cours des 30 derniers jours)
stelios loizidis
stelios loizidis le 19 Juil 2021
Commenté : WELTON DUQUE le 12 Avr 2022
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);

Réponses (1)

KSSV
KSSV le 19 Juil 2021
MAE_Perc=mae((True-Predict)/.True); % <-- bracket needed here
RMSE_Perc=sqrt(mse(Tru-Predict)/.True);
  1 commentaire
WELTON DUQUE
WELTON DUQUE le 12 Avr 2022
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%?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by