Keras - Loss and Metric calculated differently?

前端 未结 1 1214
闹比i
闹比i 2021-01-05 00:34

I have a model in Keras which I\'m optimizing the mean squared error. However, if I use the same code as in losses.py from Keras in the metric, I get a differen

相关标签:
1条回答
  • 2021-01-05 01:24

    Remember - that if you use any kind of regularization - it affects your loss. Your actual loss is equal to:

    loss = mse + regularization
    

    and this is where your discrepancy comes from.

    0 讨论(0)
提交回复
热议问题