Why Training Set accuracy decrease dramatically after stopping the trainNetwork?
이전 댓글 표시
After stopping manually trainNetworktrainNetwork, the validation error dropped dramatically:

I tested the Training Set accuracy, and got also about 60%:
predY = classify(net,xTrain);
Any ideas what I'am doing wrong?
댓글 수: 4
Greg Heath
2018년 12월 30일
Four curves and none of them labelled ??
Sergy Stepura
2018년 12월 30일
Don Mathis
2019년 1월 23일
What is your network architecture? Does it contain dropoutLayers and later BatchNormlization layers?
Sergy Stepura
2019년 2월 1일
편집: Sergy Stepura
2019년 2월 4일
답변 (1개)
Don Mathis
2019년 2월 8일
0 개 추천
Maybe your minibatch size is too small. The accuracy drop may be due to batchnormalization layers getting finalized, during which time the mean and variance of the incoming activations of each batchnorm layer are computed using the whole training set. If those full-batch statistics don't match the minibatch statistics very well, the finalized batchnorm layers will not be performing a very good normalization.
댓글 수: 3
Sergy Stepura
2019년 2월 8일
편집: Sergy Stepura
2019년 2월 8일
Don Mathis
2019년 2월 11일
You could try increasing the batch size iteratively to see whether that fixes the problem. I would try exponentially increasing: 1000, 2000, 4000, 8000, etc. Or you can just try the largest amount that will fit in your GPU memory right away.
Don Mathis
2019년 2월 11일
Also: Why does your plot show "Iterations per epoch: 1"? Were you using miniBatchSize=30000 in that run?
What are you passing to trainingOptions()?
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
