フィルターのクリア

In case of multiple output in ANN ,what does R value represent?

10 ビュー (過去 30 日間)
Sunita
Sunita 2023 年 12 月 6 日
コメント済み: Aiswarya 2023 年 12 月 13 日
I have 4 inputs and 3 outputs , I am getting only one regression (R-value) , how this is calculated out of 3 outputs?

回答 (1 件)

Aiswarya
Aiswarya 2023 年 12 月 11 日
Hi Sunita,
I understand that you want to know how R is calculated for a multiple output ANN(Artificial Neural Network). The formula for calculating the R value is provided in the following documentation:
The R value for multiple outputs can be calculated as follows (where y_predicted and y_actual will be matrices):
% Sum of squared errors
SSE = sum((y_predicted - y_actual).^2,"all")
% Total sum of squares
SST = sum((y_actual - mean(y_actual)).^2,"all");
% Normalized Mean Square Error
NMSE = SSE/SST
% R squared
Rsquared = 1 - NMSE
You may also refer to this MATLAB answer for MSE calculation for multiple output neural network :
  2 件のコメント
Sunita
Sunita 2023 年 12 月 11 日
Thank you for your response. I'm curious about the R-value displayed when there are three predicted outputs (columns 1, 2, and 3). does the R-value shown correspond to column 1, 2, or 3?
Aiswarya
Aiswarya 2023 年 12 月 13 日
It basically represents the cumulative of all three predicted outputs, as mentioned in the sum (SSE and SST), the 'all' term refers to summing up across all dimensions (considering the 3 outputs as different dimensions). So, as answer to your question it represents all the output columns.

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

カテゴリ

Help Center および File ExchangeProblem-Based Optimization Setup についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by