필터 지우기
필터 지우기

training stops due to NaN loss value

조회 수: 12 (최근 30일)
Shoaib Ali
Shoaib Ali 2022년 8월 22일
댓글: Shoaib Ali 2022년 8월 26일
The training process stops due NaN loss... How to avoid this to complete the training ..and what is the possible issue that causses..
  댓글 수: 5
Shoaib Ali
Shoaib Ali 2022년 8월 23일
Weighted cross entropy loss
Chunru
Chunru 2022년 8월 23일
try "dbstop error" and then run the program. Check if the network output is 0. There might be a problem if network output is 0 since entropy loss has term of T*log(Y) where T is target and Y is the network output.

댓글을 달려면 로그인하십시오.

답변 (1개)

Shoaib Ali
Shoaib Ali 2022년 8월 24일
Can you explain, where to use this inside the loss funtion or before the training command??
  댓글 수: 2
Chunru
Chunru 2022년 8월 25일
"dbstop error" can be used in command line before you train the network. Then it should stop when error occurs and then you check out what is wrong at which part of program.
Shoaib Ali
Shoaib Ali 2022년 8월 26일
ok Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by