xgboost
公有成员函数 | 静态公有成员函数 | 公有属性 | 所有成员列表
xgboost::Entry 结构体参考

稀疏向量中的元素。 更多...

#include <data.h>

xgboost::Entry 的协作图
Collaboration graph

公有成员函数

 Entry ()=default
 默认构造函数 更多...
 
XGBOOST_DEVICE Entry (bst_feature_t index, bst_float fvalue)
 带索引和值的构造函数 更多...
 
bool operator== (const Entry &other) const
 

静态公有成员函数

static bool CmpValue (const Entry &a, const Entry &b)
 反向比较特征值 更多...
 
static bool CmpIndex (Entry const &a, Entry const &b)
 

公有属性

bst_feature_t index
 特征索引 更多...
 
bst_float fvalue
 特征值 更多...
 

详细描述

稀疏向量中的元素。

构造函数和析构函数文档

◆ Entry() [1/2]

xgboost::Entry::Entry ( )
default

默认构造函数

◆ Entry() [2/2]

XGBOOST_DEVICE xgboost::Entry::Entry ( bst_feature_t  index,
bst_float  fvalue 
)
inline

带索引和值的构造函数

参数
index特征或行索引。
fvalue特征值。

成员函数文档

◆ CmpIndex()

static bool xgboost::Entry::CmpIndex ( Entry const &  a,
Entry const &  b 
)
inlinestatic

◆ CmpValue()

static bool xgboost::Entry::CmpValue ( const Entry a,
const Entry b 
)
inlinestatic

反向比较特征值

◆ operator==()

bool xgboost::Entry::operator== ( const Entry other) const
inline

成员数据文档

◆ fvalue

bst_float xgboost::Entry::fvalue

特征值

◆ index

bst_feature_t xgboost::Entry::index

特征索引


此结构体的文档生成自以下文件