Compute performance measures from neural network

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

 採用された回答

KSSV
KSSV 2022 年 6 月 8 日
編集済み: KSSV 2022 年 6 月 8 日

1 投票

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 件のコメント

Elysi Cochin
Elysi Cochin 2022 年 6 月 8 日
Is Yt and T the same?
KSSV
KSSV 2022 年 6 月 8 日
Yes....it is. T is the target.
KSSV
KSSV 2022 年 6 月 9 日
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
Elysi Cochin
Elysi Cochin 2022 年 6 月 9 日
I saw coefficient of correlation and coefficient of determination, so got a doubt, which the regression function computes. Thank you Sir for clearing

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2022 年 6 月 8 日

コメント済み:

2022 年 6 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by