【问题标题】:xgboost in Python:where are the definitions of predictions, gradient, hessian and loss function?Python中的xgboost:预测、梯度、hessian和损失函数的定义在哪里?
【发布时间】:2019-05-24 16:32:17
【问题描述】:

我正在搜索具有以下定义的代码块

  • 物流损失
  • 预测
  • 渐变
  • Hessian 矩阵

xgboost 在其 Python 实现中使用,地址为 https://github.com/dmlc/xgboost/tree/master/python-package/xgboost (*)

我可以使用 Chen 和 Guestrin 的原始论文(可在 https://arxiv.org/abs/1603.02754 获得)分析推导出上述公式,但我需要深入研究代码。

有人能指出这些定义在 (*) 中的位置吗? 快速搜索后,我什么也没找到。

【问题讨论】:

    标签: python github xgboost


    【解决方案1】:

    这些应该使用 C/C++ 来实现以提高性能,所以我认为您无法在 /python-package 下找到它们。

    您应该查看:https://github.com/dmlc/xgboost/tree/master/src

    【讨论】:

      猜你喜欢
      • 2020-05-26
      • 2021-02-24
      • 2016-12-29
      • 1970-01-01
      • 2019-04-14
      • 2020-02-02
      • 2020-03-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多