Modify loss function used in classification layer

조회 수: 11 (최근 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 CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by