xgboost
|
为 xgboost 定义了配置宏和基本类型。 更多...
#include <dmlc/omp.h>
#include <xgboost/windefs.h>
#include <cstdint>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
类 | |
class | xgboost::detail::GradientPairInternal< T > |
梯度统计对的实现。可使用模板特化来重载不同的梯度类型,例如低精度、高精度、整数、浮点数。 更多... | |
class | xgboost::GradientPairInt64 |
用于高精度梯度对的定点表示。具有不同的接口,以避免在增益计算中意外使用。 更多... | |
命名空间 | |
xgboost | |
多目标树的核心数据结构。 | |
xgboost::detail | |
宏 | |
#define | XGBOOST_STRICT_R_MODE 0 |
R 库的字符串标志,以便在需要时留下 hooks。 更多... | |
#define | XGBOOST_LOG_WITH_TIME 1 |
是否始终带有时间戳记录控制台消息。它将显示为,消息头附加时间戳。"[21:47:50] 6513x126 matrix with 143286 entries loaded from ../data/agaricus.txt.train"。 更多... | |
#define | XGBOOST_CUSTOMIZE_GLOBAL_PRNG 0 |
是否自定义全局 PRNG。 更多... | |
#define | XGBOOST_ALIGNAS(X) |
检查是否支持 alignas(*) 关键字。(g++ 4.8 或更高版本) 更多... | |
#define | XGBOOST_EXPECT(cond, ret) (cond) |
#define | XGBOOST_DEVICE |
将函数标记为可由设备使用。 更多... | |
#define | XGBOOST_HOST_DEV_INLINE |
#define | XGBOOST_DEV_INLINE |
类型定义 | |
using | xgboost::bst_uint = std::uint32_t |
用于特征索引的无符号整数类型。 更多... | |
using | xgboost::bst_ulong = std::uint64_t |
无符号长整数 更多... | |
using | xgboost::bst_float = float |
浮点类型,用于存储统计信息 更多... | |
using | xgboost::bst_cat_t = std::int32_t |
分类值类型。 更多... | |
using | xgboost::bst_feature_t = std::uint32_t |
数据列(特征)索引的类型。 更多... | |
using | xgboost::bst_bin_t = std::int32_t |
直方图 bin 索引的类型。我们有时使用 -1 表示无效 bin。 更多... | |
using | xgboost::bst_idx_t = std::uint64_t |
数据行索引(样本)的类型。 更多... | |
using | xgboost::bst_node_t = std::int32_t |
树节点索引的类型。 更多... | |
using | xgboost::bst_group_t = std::uint32_t |
排序分组索引的类型。 更多... | |
using | xgboost::bst_target_t = std::uint32_t |
用于索引输出目标的类型。 更多... | |
using | xgboost::bst_layer_t = std::int32_t |
用于索引 boosted 层的类型。 更多... | |
using | xgboost::bst_tree_t = std::int32_t |
用于索引树的类型。 更多... | |
using | xgboost::bst_d_ordinal_t = std::int16_t |
CUDA 设备的序号。 更多... | |
using | xgboost::GradientPair = detail::GradientPairInternal< float > |
梯度 boosting 中通常需要的梯度统计对 更多... | |
using | xgboost::GradientPairPrecise = detail::GradientPairInternal< double > |
高精度梯度统计对。 更多... | |
using | xgboost::Args = std::vector< std::pair< std::string, std::string > > |
using | xgboost::omp_ulong = dmlc::omp_ulong |
为 openmp 循环定义 unsigned long 更多... | |
using | xgboost::bst_omp_uint = dmlc::omp_uint |
为 openmp 循环定义 unsigned int 更多... | |
using | xgboost::XGBoostVersionT = std::int32_t |
用于以二进制形式表示版本号的类型。 更多... | |
变量 | |
constexpr bst_float | xgboost::kRtEps = 1e-6f |
最小分割决策的小 eps 间隙。 更多... | |
为 xgboost 定义了配置宏和基本类型。
版权所有 2015-2024,XGBoost 贡献者
#define XGBOOST_ALIGNAS | ( | X | ) |
检查是否支持 alignas(*) 关键字。(g++ 4.8 或更高版本)
#define XGBOOST_CUSTOMIZE_GLOBAL_PRNG 0 |
是否自定义全局 PRNG。
#define XGBOOST_DEV_INLINE |
#define XGBOOST_DEVICE |
将函数标记为可由设备使用。
#define XGBOOST_EXPECT | ( | cond, | |
ret | |||
) | (cond) |
#define XGBOOST_HOST_DEV_INLINE |
#define XGBOOST_LOG_WITH_TIME 1 |
是否始终带有时间戳记录控制台消息。它将显示为,消息头附加时间戳。"[21:47:50] 6513x126 matrix with 143286 entries loaded from ../data/agaricus.txt.train"。
#define XGBOOST_STRICT_R_MODE 0 |
R 库的字符串标志,以便在需要时留下 hooks。