フィルターのクリア

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 Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by