xgboost
公有成员函数 | 静态公有成员函数 | 所有成员列表
xgboost::MultiTargetTree 类参考

多目标模型的树结构。 更多...

#include <multi_target_tree_model.h>

xgboost::MultiTargetTree 的继承图
Inheritance graph
xgboost::MultiTargetTree 的协作图
Collaboration graph

公有成员函数

 MultiTargetTree (TreeParam const *param)
 
void SetLeaf (bst_node_t nidx, linalg::VectorView< float const > weight)
 设置叶子节点的权重。 更多...
 
void Expand (bst_node_t nidx, bst_feature_t split_idx, float split_cond, bool default_left, linalg::VectorView< float const > base_weight, linalg::VectorView< float const > left_weight, linalg::VectorView< float const > right_weight)
 将叶子节点扩展为分裂节点。 更多...
 
bool IsLeaf (bst_node_t nidx) const
 
bst_node_t Parent (bst_node_t nidx) const
 
bst_node_t LeftChild (bst_node_t nidx) const
 
bst_node_t RightChild (bst_node_t nidx) const
 
bst_feature_t SplitIndex (bst_node_t nidx) const
 
float SplitCond (bst_node_t nidx) const
 
bool DefaultLeft (bst_node_t nidx) const
 
bst_node_t DefaultChild (bst_node_t nidx) const
 
bst_target_t NumTarget () const
 
std::size_t Size () const
 
bst_node_t Depth (bst_node_t nidx) const
 
linalg::VectorView< float const > LeafValue (bst_node_t nidx) const
 
void LoadModel (Json const &in) override
 从 JSON 对象加载模型 更多...
 
void SaveModel (Json *out) const override
 将模型配置保存到 JSON 对象 更多...
 
- 继承自 xgboost::Model 的公有成员函数
virtual ~Model ()=default
 

静态公有成员函数

static constexpr bst_node_t InvalidNodeId ()
 

详细描述

多目标模型的树结构。

构造函数&析构函数文档

◆ MultiTargetTree()

xgboost::MultiTargetTree::MultiTargetTree ( TreeParam const *  param)
explicit

成员函数文档

◆ DefaultChild()

bst_node_t xgboost::MultiTargetTree::DefaultChild ( bst_node_t  nidx) const
inline

◆ DefaultLeft()

bool xgboost::MultiTargetTree::DefaultLeft ( bst_node_t  nidx) const
inline

◆ Depth()

bst_node_t xgboost::MultiTargetTree::Depth ( bst_node_t  nidx) const
inline

◆ Expand()

void xgboost::MultiTargetTree::Expand ( bst_node_t  nidx,
bst_feature_t  split_idx,
float  split_cond,
bool  default_left,
linalg::VectorView< float const >  base_weight,
linalg::VectorView< float const >  left_weight,
linalg::VectorView< float const >  right_weight 
)

将叶子节点扩展为分裂节点。

◆ InvalidNodeId()

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

◆ IsLeaf()

bool xgboost::MultiTargetTree::IsLeaf ( bst_node_t  nidx) const
inline

◆ LeafValue()

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

◆ LeftChild()

bst_node_t xgboost::MultiTargetTree::LeftChild ( bst_node_t  nidx) const
inline

◆ LoadModel()

void xgboost::MultiTargetTree::LoadModel ( Json const &  in)
overridevirtual

从 JSON 对象加载模型

参数
in要从中加载模型的 JSON 对象

实现 xgboost::Model

◆ NumTarget()

bst_target_t xgboost::MultiTargetTree::NumTarget ( ) const

◆ Parent()

bst_node_t xgboost::MultiTargetTree::Parent ( bst_node_t  nidx) const
inline

◆ RightChild()

bst_node_t xgboost::MultiTargetTree::RightChild ( bst_node_t  nidx) const
inline

◆ SaveModel()

void xgboost::MultiTargetTree::SaveModel ( Json out) const
overridevirtual

将模型配置保存到 JSON 对象

参数
out要将模型保存到的 JSON 容器

实现 xgboost::Model

◆ SetLeaf()

void xgboost::MultiTargetTree::SetLeaf ( bst_node_t  nidx,
linalg::VectorView< float const >  weight 
)

设置叶子节点的权重。

◆ Size()

std::size_t xgboost::MultiTargetTree::Size ( ) const

◆ SplitCond()

float xgboost::MultiTargetTree::SplitCond ( bst_node_t  nidx) const
inline

◆ SplitIndex()

bst_feature_t xgboost::MultiTargetTree::SplitIndex ( bst_node_t  nidx) const
inline

本类的文档生成自以下文件