Except for the first iteration others show NaN

조회 수: 10(최근 30일)
KAI-YANG WANG
KAI-YANG WANG 2021년 8월 31일
댓글: KAI-YANG WANG 2021년 9월 2일
When I start training my CNN it shows me training details only on first iteration, and I've already check the training data size and the validation data size is 100000 and 20000, I was wondering is it normal process or not. Thank you.
  댓글 수: 2
KAI-YANG WANG
KAI-YANG WANG 2021년 9월 1일
Thank you for the answer, Ive checked there's no nan in my training data.

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

채택된 답변

KSSV
KSSV 2021년 9월 1일
Try reducing the initial learning rate.
options = trainingOptions('adam') ;
options.InitialLearnRate
ans = 1.0000e-03
options.InitialLearnRate = 10^-4 ;
options.InitialLearnRate
ans = 1.0000e-04
If the above works well and good. If not show us your full code and data.
  댓글 수: 2
KAI-YANG WANG
KAI-YANG WANG 2021년 9월 2일
I've tried a further lower learning rate and it does help, Thank you!

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

추가 답변(0개)

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by