Compute performance measures from neural network
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Elysi Cochin
am 8 Jun. 2022
Kommentiert: Elysi Cochin
am 9 Jun. 2022
How to compute
Coefficient of Determination - R^2
Root Mean Squared Error - RMSE
Mean Absolute Percentage Error - MAPE
from
net = train(net,X,T);
Y = net(X);
0 Kommentare
Akzeptierte Antwort
KSSV
am 8 Jun. 2022
Bearbeitet: KSSV
am 8 Jun. 2022
net = train(net,X,T);
Yp = net(X); % predicted from Net and Let Yt be your true value
R = regression(Yp,Yt) ; % Regression
RMSE = sqrt(mean((Yt - Yp).^2)); % RMSE
% MAPE
pre_MAPE = abs((yp-Yt)./Yt);
MAPE = mean(pre_MAPE);
4 Kommentare
KSSV
am 9 Jun. 2022
Off course, yes. Why you got such a doubt?
Yesterday what I gave is a regression (R). For R square: refer: https://in.mathworks.com/help/matlab/data_analysis/linear-regression.html
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sequence and Numeric Feature Data Workflows 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!