tensorflow2.0——交叉熵损失函数

 

平方损失函数求导后,偏导太小,迭代更新慢,所以考虑用交叉熵损失函数(注意标记值和预测值不能写反了)(标记值为0或1,对0取对数是不存在的额):

tensorflow2.0——交叉熵损失函数

 

交叉熵损失函数满足作为损失函数的两大规则:非负性,单调一致性

tensorflow2.0——交叉熵损失函数

 

 

 

 

 tensorflow2.0——交叉熵损失函数

 

相关文章:

  • 2021-07-31
猜你喜欢
  • 2021-05-09
  • 2021-10-21
  • 2021-05-08
  • 2021-11-30
  • 2021-04-26
相关资源
相似解决方案