xgboost
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
xgboost::common::HistCutMatrix Struct Reference

Cut configuration for all the features. More...

#include <hist_util.h>

Collaboration diagram for xgboost::common::HistCutMatrix:
Collaboration graph

Public Types

using WXQSketch = common::WXQuantileSketch< bst_float, bst_float >
 

Public Member Functions

uint32_t GetBinIdx (const Entry &e)
 
void Init (DMatrix *p_fmat, uint32_t max_num_bins)
 
void Init (std::vector< WXQSketch > *sketchs, uint32_t max_num_bins)
 
 HistCutMatrix ()
 
size_t NumBins () const
 

Public Attributes

std::vector< uint32_t > row_ptr
 Unit pointer to rows by element position. More...
 
std::vector< bst_floatmin_val
 minimum value of each feature More...
 
std::vector< bst_floatcut
 the cut field More...
 

Protected Member Functions

virtual size_t SearchGroupIndFromBaseRow (std::vector< bst_uint > const &group_ptr, size_t const base_rowid) const
 

Protected Attributes

Monitor monitor_
 

Detailed Description

Cut configuration for all the features.

Member Typedef Documentation

◆ WXQSketch

Constructor & Destructor Documentation

◆ HistCutMatrix()

xgboost::common::HistCutMatrix::HistCutMatrix ( )

Member Function Documentation

◆ GetBinIdx()

uint32_t xgboost::common::HistCutMatrix::GetBinIdx ( const Entry e)

◆ Init() [1/2]

void xgboost::common::HistCutMatrix::Init ( DMatrix p_fmat,
uint32_t  max_num_bins 
)

◆ Init() [2/2]

void xgboost::common::HistCutMatrix::Init ( std::vector< WXQSketch > *  sketchs,
uint32_t  max_num_bins 
)

◆ NumBins()

size_t xgboost::common::HistCutMatrix::NumBins ( ) const
inline

◆ SearchGroupIndFromBaseRow()

virtual size_t xgboost::common::HistCutMatrix::SearchGroupIndFromBaseRow ( std::vector< bst_uint > const &  group_ptr,
size_t const  base_rowid 
) const
protectedvirtual

Member Data Documentation

◆ cut

std::vector<bst_float> xgboost::common::HistCutMatrix::cut

the cut field

◆ min_val

std::vector<bst_float> xgboost::common::HistCutMatrix::min_val

minimum value of each feature

◆ monitor_

Monitor xgboost::common::HistCutMatrix::monitor_
protected

◆ row_ptr

std::vector<uint32_t> xgboost::common::HistCutMatrix::row_ptr

Unit pointer to rows by element position.


The documentation for this struct was generated from the following file: