Azzera filtri
Azzera filtri

Compute performance measures from neural network

2 visualizzazioni (ultimi 30 giorni)
How to compute
Coefficient of Determination - R^2
Root Mean Squared Error - RMSE
Mean Absolute Percentage Error - MAPE
net = train(net,X,T);
Y = net(X);

Risposta accettata

KSSV il 8 Giu 2022
Modificato: KSSV il 8 Giu 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
pre_MAPE = abs((yp-Yt)./Yt);
MAPE = mean(pre_MAPE);
  4 Commenti
KSSV il 9 Giu 2022
Off course, yes. Why you got such a doubt?
Yesterday what I gave is a regression (R). For R square: refer:
Elysi Cochin
Elysi Cochin il 9 Giu 2022
I saw coefficient of correlation and coefficient of determination, so got a doubt, which the regression function computes. Thank you Sir for clearing

Accedi per commentare.

Più risposte (0)


Scopri di più su Sequence and Numeric Feature Data Workflows in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by