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

适用于主机和设备的 @MultiTargetTree 的视图。 更多...

#include <multi_target_tree_model.h>

xgboost::MultiTargetTreeView 协作图
Collaboration graph

公共成员函数

XGBOOST_DEVICE bool IsLeaf (bst_node_t nidx) const
 
XGBOOST_DEVICE bst_node_t LeftChild (bst_node_t nidx) const
 
XGBOOST_DEVICE bst_node_t RightChild (bst_node_t nidx) const
 
XGBOOST_DEVICE bst_feature_t SplitIndex (bst_node_t nidx) const
 
XGBOOST_DEVICE float SplitCond (bst_node_t nidx) const
 
XGBOOST_DEVICE bool DefaultLeft (bst_node_t nidx) const
 
XGBOOST_DEVICE bst_node_t DefaultChild (bst_node_t nidx) const
 
XGBOOST_DEVICE linalg::VectorView< float const > LeafValue (bst_node_t nidx) const
 
bst_target_t NumTargets () const
 
bst_node_t Size () const
 

静态公共成员函数

static constexpr bst_node_t InvalidNodeId ()
 

公共属性

bst_node_t const * left
 
bst_node_t const * right
 
bst_node_t const * parent
 
bst_feature_t const * split_index
 
std::uint8_t const * default_left
 
float const * split_conds
 
std::size_t n {0}
 
linalg::MatrixView< float const > weights
 

详细描述

适用于主机和设备的 @MultiTargetTree 的视图。

成员函数文档

◆ DefaultChild()

XGBOOST_DEVICE bst_node_t xgboost::MultiTargetTreeView::DefaultChild ( bst_node_t  nidx) const
inline

◆ DefaultLeft()

XGBOOST_DEVICE bool xgboost::MultiTargetTreeView::DefaultLeft ( bst_node_t  nidx) const
inline

◆ InvalidNodeId()

static constexpr bst_node_t xgboost::MultiTargetTreeView::InvalidNodeId ( )
inlinestaticconstexpr

◆ IsLeaf()

XGBOOST_DEVICE bool xgboost::MultiTargetTreeView::IsLeaf ( bst_node_t  nidx) const
inline

◆ LeafValue()

XGBOOST_DEVICE linalg::VectorView<float const> xgboost::MultiTargetTreeView::LeafValue ( bst_node_t  nidx) const
inline

◆ LeftChild()

XGBOOST_DEVICE bst_node_t xgboost::MultiTargetTreeView::LeftChild ( bst_node_t  nidx) const
inline

◆ NumTargets()

bst_target_t xgboost::MultiTargetTreeView::NumTargets ( ) const
inline

◆ RightChild()

XGBOOST_DEVICE bst_node_t xgboost::MultiTargetTreeView::RightChild ( bst_node_t  nidx) const
inline

◆ Size()

bst_node_t xgboost::MultiTargetTreeView::Size ( ) const
inline

◆ SplitCond()

XGBOOST_DEVICE float xgboost::MultiTargetTreeView::SplitCond ( bst_node_t  nidx) const
inline

◆ SplitIndex()

XGBOOST_DEVICE bst_feature_t xgboost::MultiTargetTreeView::SplitIndex ( bst_node_t  nidx) const
inline

成员数据文档

◆ default_left

std::uint8_t const* xgboost::MultiTargetTreeView::default_left

◆ left

bst_node_t const* xgboost::MultiTargetTreeView::left

◆ n

std::size_t xgboost::MultiTargetTreeView::n {0}

◆ parent

bst_node_t const* xgboost::MultiTargetTreeView::parent

◆ right

bst_node_t const* xgboost::MultiTargetTreeView::right

◆ split_conds

float const* xgboost::MultiTargetTreeView::split_conds

◆ split_index

bst_feature_t const* xgboost::MultiTargetTreeView::split_index

◆ weights

linalg::MatrixView<float const> xgboost::MultiTargetTreeView::weights

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