Neural Network cost function normalization

1 回表示 (過去 30 日間)
Dong Youn Lee
Dong Youn Lee 2021 年 8 月 9 日
コメント済み: 少快 王 2024 年 1 月 2 日
Hello,
I am using feedforward network in MATLAB.
My question is "what is the definite procedure of Normalization?".
Code: net.performParam.normalization='percent';
In the help, "'percent', which normalizes errors between -1 and 1" is written.
Then does it mean that normalization makes minimum value of errors to -1, and maximum value to 1?
For example, ground truth data is "1 2 3 4"
and the NN's output is "0.9 1.95 3 4.1"
then the errors would be "-0.1, -0.05, 0, 0.1".
Then, after normalization, will it become "-1 -0.5 0 1"?
Thanks regard.

回答 (1 件)

Sahil Jain
Sahil Jain 2021 年 8 月 13 日
The documentation for "nnparam.normalization" says "If it is set to 'percent' then percentage errors are used, relative to the ranges of the original target data, and errors will be mapped to the range [-1,1]."
Therefore, if "t" and "y" are the ground truth and output predictions respectively, then the normalized error values would be
  2 件のコメント
Dong Youn Lee
Dong Youn Lee 2021 年 8 月 13 日
Thanks a lot!
少快 王
少快 王 2024 年 1 月 2 日
Why is the range of the error not max(e) - min(e), but max(t)-min(t)? I think en(error normalization) should be:en=2*(e-min(e)) / (max(e) - min(e))-1

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

カテゴリ

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