Medial Code Documentation
Loading...
Searching...
No Matches
Data Structures | Namespaces | Typedefs | Functions
categorical.h File Reference

Copyright 2020-2023, XGBoost Contributors. More...

#include <limits>
#include "bitfield.h"
#include "xgboost/base.h"
#include "xgboost/data.h"
#include "xgboost/span.h"

Go to the source code of this file.

Data Structures

struct  xgboost::common::IsCatOp
 

Namespaces

namespace  xgboost
 namespace of xgboost
 
namespace  xgboost::common
 Copyright 2017-2023, XGBoost Contributors.
 

Typedefs

using xgboost::common::CatBitField = LBitField32
 
using xgboost::common::KCatBitField = CLBitField32
 

Functions

template<typename T >
XGBOOST_DEVICE bst_cat_t xgboost::common::AsCat (T const &v)
 
XGBOOST_DEVICE bool xgboost::common::IsCat (Span< FeatureType const > ft, bst_feature_t fidx)
 
constexpr bst_cat_t xgboost::common::OutOfRangeCat ()
 
XGBOOST_DEVICE bool xgboost::common::InvalidCat (float cat)
 
XGBOOST_DEVICE bool xgboost::common::Decision (common::Span< CatBitField::value_type const > cats, float cat)
 Whether should it traverse to left branch of a tree.
 
void xgboost::common::InvalidCategory ()
 
void xgboost::common::CheckMaxCat (float max_cat, size_t n_categories)
 
XGBOOST_DEVICE bool xgboost::common::UseOneHot (uint32_t n_cats, uint32_t max_cat_to_onehot)
 Whether should we use onehot encoding for categorical data.
 

Detailed Description

Copyright 2020-2023, XGBoost Contributors.