MSE, RMSE and any other useful evaluation metrics

1 回表示 (過去 30 日間)
Sadiq Akbar
Sadiq Akbar 2019 年 10 月 22 日
編集済み: KALYAN ACHARJYA 2019 年 10 月 22 日
If I have 100 vectors of error and each error vector has got four elements, then how can we we find its MSE, RMSE and any other performance metric? e.g. If I have my desired vector as u=[0.5 1 0.6981 0.7854] and I have estimated vectors like as: Est1=[0.499 0.99 0.689 0.779], Est2=[0.500 1.002 0.699 0.77], Est3=[0.489 0.989 0.698 0.787],---Est100=[---],
Then Error1=u-Est1; Error2=u-Est2 and so on up to Error100=u-Est100. Now how can we find the MSE, RMSE and tell me others as well that are used to indicate the perofrmance of the algorithm. please tell me in the form of easy code.
Regards,
Sadiq Akbar

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 10 月 22 日
編集済み: KALYAN ACHARJYA 2019 年 10 月 22 日
The u vector as follows (As per question)
u=[0.5 1 0.6981 0.7854];
Est1=[0.499 0.99 0.689 0.779],
Est2=[0.500 1.002 0.699 0.77];
Est3=[0.489 0.989 0.698 0.787];
% So on......
% Save all Est in cell array, help easy to call
Est={Est1,Est1,Est1};
for i=length(Est)
err(i)=mse(u,Est{1});
end
err % this err gives the err for three each pair
Next, hope you can implment RMSE by yourself , help here
Good Luck!

カテゴリ

Help Center および File ExchangeFSK についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by