MAE and RMSE in percentage

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);

Respuestas (1)

KSSV
KSSV el 19 de Jul. de 2021

0 votos

MAE_Perc=mae((True-Predict)/.True); % <-- bracket needed here
RMSE_Perc=sqrt(mse(Tru-Predict)/.True);

1 comentario

WELTON DUQUE
WELTON DUQUE el 12 de Abr. de 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%?

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 19 de Jul. de 2021

Comentada:

el 12 de Abr. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by