Modify loss function used in classification layer

6 ビュー (過去 30 日間)
Jennifer Voon
Jennifer Voon 2019 年 9 月 26 日
コメント済み: Kenta 2019 年 9 月 28 日
The default loss function used in classification layer is the crossentrophy. How can I modify or change the loss function used in the classification layer?
  2 件のコメント
Greg Heath
Greg Heath 2019 年 9 月 28 日
You will have to define EXACTLYwhat output you want for each class's input.
Greg
Jennifer Voon
Jennifer Voon 2019 年 9 月 28 日
Thank Greg for replying.
I am aware of that, but I am not exactly sure how to ‘define’ the output. Is there any example code that shows how I can do that?
Thank you!

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

採用された回答

Kenta
Kenta 2019 年 9 月 28 日
Please refer to this document. This document shows an example to change the loss function into sum of squares error.
In my experience, changing the function into other is not easy, though it is technically possible.
  2 件のコメント
Jennifer Voon
Jennifer Voon 2019 年 9 月 28 日
Thank you Kenta!
Kenta
Kenta 2019 年 9 月 28 日
my pleasure

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning for Image Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by