training stops due to NaN loss value
7 次查看(过去 30 天)
显示 更早的评论
The training process stops due NaN loss... How to avoid this to complete the training ..and what is the possible issue that causses..
5 个评论
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
2022-8-24
2 个评论
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!