training stops due to NaN loss value
Ältere Kommentare anzeigen
The training process stops due NaN loss... How to avoid this to complete the training ..and what is the possible issue that causses..
5 Kommentare
Chunru
am 22 Aug. 2022
Likely you have some nan data in your training samples. You can try
rmmissing(A, dim)
Shoaib Ali
am 22 Aug. 2022
Chunru
am 22 Aug. 2022
Then what is the loss function?
Shoaib Ali
am 23 Aug. 2022
Chunru
am 23 Aug. 2022
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.
Antworten (1)
Shoaib Ali
am 24 Aug. 2022
0 Stimmen
2 Kommentare
Chunru
am 25 Aug. 2022
"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
am 26 Aug. 2022
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!