hanbt / learn_dl

Deep learning algorithms source code for beginners
Apache License 2.0
1.19k stars 988 forks source link

fc.py中测试时为什么损失函数值不减反增,而且准确率很低。 #31

Open LJNL opened 5 years ago

LJNL commented 5 years ago

fc.py 的 test()运行时发现log after epoch 1 loss: 0.016419 after epoch 2 loss: 0.053763 after epoch 3 loss: 0.108310 after epoch 4 loss: 0.171011 after epoch 5 loss: 0.225434 after epoch 6 loss: 0.261430 after epoch 7 loss: 0.281527 after epoch 8 loss: 0.291327 after epoch 9 loss: 0.295843 after epoch 10 loss: 0.297988 correct_ratio: 5.47%

janlely commented 4 years ago

fc.py 的 test()运行时发现log after epoch 1 loss: 0.016419 after epoch 2 loss: 0.053763 after epoch 3 loss: 0.108310 after epoch 4 loss: 0.171011 after epoch 5 loss: 0.225434 after epoch 6 loss: 0.261430 after epoch 7 loss: 0.281527 after epoch 8 loss: 0.291327 after epoch 9 loss: 0.295843 after epoch 10 loss: 0.297988 correct_ratio: 5.47%

我也是,在mnist数据集上根本跑不出好结果,不知道是不是代码的问题,梯度检查是正常的