Compute performance measures from neural network

조회 수: 3 (최근 30일)
Elysi Cochin
Elysi Cochin 2022년 6월 8일
댓글: Elysi Cochin 2022년 6월 9일
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);

채택된 답변

KSSV 2022년 6월 8일
편집: KSSV 2022년 6월 8일
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
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:
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개)


Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by