#include <hist_util.h>
◆ BinIdx
◆ HistogramCuts() [1/3]
xgboost::common::HistogramCuts::HistogramCuts |
( |
| ) |
|
◆ HistogramCuts() [2/3]
xgboost::common::HistogramCuts::HistogramCuts |
( |
HistogramCuts const & |
that | ) |
|
|
inline |
◆ HistogramCuts() [3/3]
xgboost::common::HistogramCuts::HistogramCuts |
( |
HistogramCuts && |
that | ) |
|
|
inlinenoexcept |
◆ Copy()
void xgboost::common::HistogramCuts::Copy |
( |
HistogramCuts const & |
that | ) |
|
|
inlineprotected |
◆ FeatureBins()
uint32_t xgboost::common::HistogramCuts::FeatureBins |
( |
bst_feature_t |
feature | ) |
const |
|
inline |
◆ HasCategorical()
bool xgboost::common::HistogramCuts::HasCategorical |
( |
| ) |
const |
|
inline |
◆ MaxCategory()
float xgboost::common::HistogramCuts::MaxCategory |
( |
| ) |
const |
|
inline |
◆ MinValues()
std::vector<float> const& xgboost::common::HistogramCuts::MinValues |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Ptrs()
std::vector<uint32_t> const& xgboost::common::HistogramCuts::Ptrs |
( |
| ) |
const |
|
inline |
◆ SearchBin() [1/3]
BinIdx xgboost::common::HistogramCuts::SearchBin |
( |
Entry const & |
e | ) |
const |
|
inline |
Search the bin index for numerical feature.
◆ SearchBin() [2/3]
BinIdx xgboost::common::HistogramCuts::SearchBin |
( |
float |
value, |
|
|
bst_feature_t |
column_id |
|
) |
| const |
|
inline |
◆ SearchBin() [3/3]
BinIdx xgboost::common::HistogramCuts::SearchBin |
( |
float |
value, |
|
|
bst_feature_t |
column_id, |
|
|
std::vector< uint32_t > const & |
ptrs, |
|
|
std::vector< float > const & |
values |
|
) |
| const |
|
inline |
◆ SearchCatBin()
BinIdx xgboost::common::HistogramCuts::SearchCatBin |
( |
Entry const & |
e | ) |
const |
|
inline |
Search the bin index for categorical feature.
◆ SetCategorical()
void xgboost::common::HistogramCuts::SetCategorical |
( |
bool |
has_cat, |
|
|
float |
max_cat |
|
) |
| |
|
inline |
Set meta info about categorical features.
- Parameters
-
has_cat | Do we have categorical feature in the data? |
max_cat | The maximum categorical value in all features. |
◆ Swap()
void xgboost::common::HistogramCuts::Swap |
( |
HistogramCuts && |
that | ) |
|
|
inlineprotectednoexcept |
◆ TotalBins()
size_t xgboost::common::HistogramCuts::TotalBins |
( |
| ) |
const |
|
inline |
◆ Values()
std::vector<float> const& xgboost::common::HistogramCuts::Values |
( |
| ) |
const |
|
inline |
◆ cut_ptrs_
◆ cut_values_
◆ min_vals_
The documentation for this class was generated from the following file:
- /home/runner/work/xgboost/xgboost/src/common/hist_util.h