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

基本模型参数,用于描述 booster。更多...

#include <learner.h>

xgboost::LearnerModelParam 的协作图
Collaboration graph

公有成员函数

 LearnerModelParam ()=default
 
 LearnerModelParam (Context const *ctx, LearnerModelParamLegacy const &user_param, linalg::Tensor< float, 1 > base_margin, ObjInfo t, MultiStrategy multi_strategy)
 
 LearnerModelParam (LearnerModelParamLegacy const &user_param, ObjInfo t, MultiStrategy multi_strategy)
 
 LearnerModelParam (bst_feature_t n_features, linalg::Tensor< float, 1 > base_score, std::uint32_t n_groups, bst_target_t n_targets, MultiStrategy multi_strategy)
 
linalg::TensorView< float const, 1 > BaseScore (Context const *ctx) const
 
linalg::TensorView< float const, 1 > BaseScore (DeviceOrd device) const
 
void Copy (LearnerModelParam const &that)
 
bool IsVectorLeaf () const noexcept
 
bst_target_t OutputLength () const noexcept
 
bst_target_t LeafLength () const noexcept
 
bool Initialized () const
 

公有属性

bst_feature_t num_feature {0}
 特征数量。更多...
 
std::uint32_t num_output_group {0}
 类别或目标数量。更多...
 
ObjInfo task {ObjInfo::kRegression}
 当前任务,由目标函数确定。更多...
 
MultiStrategy multi_strategy {MultiStrategy::kOneOutputPerTree}
 构建多目标模型的策略。更多...
 

详细描述

基本模型参数,用于描述 booster。

构造函数与析构函数文档

◆ LearnerModelParam() [1/4]

xgboost::LearnerModelParam::LearnerModelParam ( )
default

◆ LearnerModelParam() [2/4]

xgboost::LearnerModelParam::LearnerModelParam ( Context const *  ctx,
LearnerModelParamLegacy const &  user_param,
linalg::Tensor< float, 1 >  base_margin,
ObjInfo  t,
MultiStrategy  multi_strategy 
)

◆ LearnerModelParam() [3/4]

xgboost::LearnerModelParam::LearnerModelParam ( LearnerModelParamLegacy const &  user_param,
ObjInfo  t,
MultiStrategy  multi_strategy 
)

◆ LearnerModelParam() [4/4]

xgboost::LearnerModelParam::LearnerModelParam ( bst_feature_t  n_features,
linalg::Tensor< float, 1 >  base_score,
std::uint32_t  n_groups,
bst_target_t  n_targets,
MultiStrategy  multi_strategy 
)
inline

成员函数文档

◆ BaseScore() [1/2]

linalg::TensorView<float const, 1> xgboost::LearnerModelParam::BaseScore ( Context const *  ctx) const

◆ BaseScore() [2/2]

linalg::TensorView<float const, 1> xgboost::LearnerModelParam::BaseScore ( DeviceOrd  device) const

◆ Copy()

void xgboost::LearnerModelParam::Copy ( LearnerModelParam const &  that)

◆ Initialized()

bool xgboost::LearnerModelParam::Initialized ( ) const
inline

◆ IsVectorLeaf()

bool xgboost::LearnerModelParam::IsVectorLeaf ( ) const
inlinenoexcept

◆ LeafLength()

bst_target_t xgboost::LearnerModelParam::LeafLength ( ) const
inlinenoexcept

◆ OutputLength()

bst_target_t xgboost::LearnerModelParam::OutputLength ( ) const
inlinenoexcept

成员数据文档

◆ multi_strategy

MultiStrategy xgboost::LearnerModelParam::multi_strategy {MultiStrategy::kOneOutputPerTree}

构建多目标模型的策略。

◆ num_feature

bst_feature_t xgboost::LearnerModelParam::num_feature {0}

特征数量。

◆ num_output_group

std::uint32_t xgboost::LearnerModelParam::num_output_group {0}

类别或目标数量。

◆ task

ObjInfo xgboost::LearnerModelParam::task {ObjInfo::kRegression}

当前任务,由目标函数确定。


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