How to correctly calculate the MSE?

2 Ansichten (letzte 30 Tage)
Veronika
Veronika am 19 Mär. 2015
Bearbeitet: dpb am 19 Mär. 2015
Dear all,
I need to calculate MSE from my vectors (input = xx, output = Y). Is this correct? If so, how do I convert the resulting number is a real number.
This si my code:
load ('net_velky_tvar_nova');
for o = 1:1:101
P = velky{1,o};
xx = velky{2,o};
Y = sim(net,P);
MSE = sum((xx-Y).^2)/101;
disp(MSE)
end
Thank you for your answers.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by