xgboost
| 命名空间 |
gbm.h 文件参考

梯度增强器的接口,它通过梯度统计学习。 更多...

#include <dmlc/registry.h>
#include <xgboost/base.h>
#include <xgboost/data.h>
#include <xgboost/host_device_vector.h>
#include <xgboost/model.h>
#include <vector>
#include <string>
#include <functional>
#include <memory>
gbm.h 的包含依赖图

转到此文件的源代码。

类  xgboost::GradientBooster
 梯度提升模型的接口。 更多...
 
结构  xgboost::GradientBoosterReg
 树更新器的注册表条目。 更多...
 

命名空间

 xgboost
 Learner 接口,将目标、gbm 和评估整合在一起。这是用户界面 XGBoost 训练模块。
 

#define XGBOOST_REGISTER_GBM(UniqueId, Name)
 注册梯度增强器的宏。 更多...
 

详细描述

梯度增强器的接口,它通过梯度统计学习。

版权所有 2014-2025, XGBoost 贡献者

作者
陈天奇

宏定义文档

◆ XGBOOST_REGISTER_GBM

#define XGBOOST_REGISTER_GBM (   UniqueId,
  Name 
)
static DMLC_ATTRIBUTE_UNUSED ::xgboost::GradientBoosterReg & \
__make_ ## GradientBoosterReg ## _ ## UniqueId ## __ = \
::dmlc::Registry< ::xgboost::GradientBoosterReg>::Get()->__REGISTER__(Name)

注册梯度增强器的宏。

// 注册目标 ndcg@k 的示例
XGBOOST_REGISTER_GBM(GBTree, "gbtree")
.describe("提升树集成。")
.set_body([]() {
return new GradientBooster<TStats>();
});
#define XGBOOST_REGISTER_GBM(UniqueId, Name)
注册梯度增强器的宏。
定义: gbm.h:192