首页 > 其他 > 详细

损失函数

时间:2016-09-13 19:14:23      阅读:170      评论:0      收藏:0      [点我收藏+]
1 Square loss
    技术分享
 
2 Hinge loss
技术分享
 
3 Logistic loss
技术分享
 
4 Cross entropy loss
   Using the alternative label convention技术分享,so that技术分享,
    the cross entropy loss is defined as
      技术分享
 
  1. x = np.linspace(-3, 3, 1000)
  2. y_logit = np.log(1 + np.exp(-x)) / math.log(2)
  3. y_01 = x < 0
  4. y_hinge = 1 - x
  5. y_hinge[y_hinge < 0] = 0


技术分享
 




损失函数

原文:http://www.cnblogs.com/iathena/p/adff097f87efcb087139ca5948015f93.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!