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

树学习的通用原语,根据信息更新树的集合。 更多...

#include <dmlc/registry.h>
#include <xgboost/base.h>
#include <xgboost/data.h>
#include <xgboost/host_device_vector.h>
#include <xgboost/linalg.h>
#include <xgboost/model.h>
#include <xgboost/span.h>
#include <xgboost/tree_model.h>
#include <functional>
#include <string>
#include <vector>
tree_updater.h 的包含依赖图

转到此文件的源代码。

类  xgboost::TreeUpdater
 树更新模块的接口,用于执行树的更新。更多...
 
结构  xgboost::TreeUpdaterReg
 树更新器注册表条目。更多...
 

命名空间

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

#define XGBOOST_REGISTER_TREE_UPDATER(UniqueId, Name)
 注册树更新器的宏。 更多...
 

详细描述

树学习的通用原语,根据信息更新树的集合。

版权所有 2014-2023 XGBoost 贡献者

作者
陈天奇

宏定义文档

◆ XGBOOST_REGISTER_TREE_UPDATER

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

注册树更新器的宏。

// 注册目标 ndcg@k 的示例
XGBOOST_REGISTER_TREE_UPDATER(ColMaker, "colmaker")
.describe("基于列的树生成器。")
.set_body([]() {
return new ColMaker<TStats>();
});
#define XGBOOST_REGISTER_TREE_UPDATER(UniqueId, Name)
注册树更新器的宏。
定义: tree_updater.h:123