Regarding GAN and its loss objective

1 回表示 (過去 30 日間)
Deepak Sivadas
Deepak Sivadas 2019 年 12 月 13 日
回答済み: Sourav Bairagya 2019 年 12 月 16 日
How to use 'mse' as loss function?
In the example provided, sigmoid is used. How to modify the function to make the loss objective as minimum mse.

採用された回答

Sourav Bairagya
Sourav Bairagya 2019 年 12 月 16 日
You can use 'mse' function from Deep Learning Toolbox which calculates half mean sqaured error between given two inputs.
dlY = mse(dlX,targets);
Format for 'dlX' or 'targets' will be as follows: [height, width, no of channels, no of observations].
'dlX' and 'targets' can be of datatype dlarray or numeric array.
If you want to use whole mse loss, then multiply the output with 2, i.e.
dlY = 2*mse(dlX,targets);
For more information you can leverage this link:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCustom Training Loops についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by