# Does Matlab has relative square error available in Neural Network toolbox?

10 ビュー (過去 30 日間)
Anderson 2015 年 11 月 28 日

I have seen that MSE, SSE, MAE and SAE are possible training functions of a neural network in Matlab. Does it have relative square error available?

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

### 採用された回答

Greg Heath 2015 年 12 月 3 日
The relative (i.e., NORMALIZED) square error is the ratio of the mean-square-error of the model, MSE, to the mean-square-error of the NAIVE CONSTANT-OUTPUT MODEL, MSE00. To minimize the mse of the latter model, the constant output is just the target mean. Correspondingly, MSE00 is just the average target variance.
MSE00 = mean(var(target',1))
Since
MSE = mse(target-output);
NMSE = MSE/MSE00 % "N"ormalized, or relative, mse.
The coefficient-of-variation or Rsquared, Rsq (See WKIPEDIA)
Rsq = 1 - NMSE
is the fraction of target variance that is "explained by the model.
I have zillions of posts in both the NEWSGROUP and ANSWERS using the above variables. In some of them I have gone into more detail than I have here.
Hope this helps.
Thank you for formally accepting my answer
Greg
##### 1 件のコメント表示 なし非表示 なし
Greg Heath 2015 年 12 月 5 日

Most of the time I used R2 instead of Rsq.
NEURAL NMSE 51 HITS 100 HITS
NEURAL R2 144 HITS 113 HITS
HOPE THIS HELPS.
GREG

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

### その他の回答 (1 件)

Dave Behera 2015 年 12 月 2 日
The only error functions available in the Neural Network Toolbox are MSE, SSE, MAE and SAE. There is no function for calculating the relative square error.

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

### カテゴリ

Help Center および File ExchangeSequence 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