xgboost
Public Member Functions | Public Attributes | List of all members
xgboost::common::GHistIndexMatrix Struct Reference

preprocessed global index matrix, in CSR format Transform floating values to integer index in histogram This is a global histogram index. More...

#include <hist_util.h>

Collaboration diagram for xgboost::common::GHistIndexMatrix:
Collaboration graph

Public Member Functions

void Init (DMatrix *p_fmat, int max_num_bins)
 
GHistIndexRow operator[] (size_t i) const
 
void GetFeatureCounts (size_t *counts) const
 

Public Attributes

std::vector< size_t > row_ptr
 row pointer to rows by element position More...
 
std::vector< uint32_t > index
 The index data. More...
 
std::vector< size_t > hit_count
 hit count of each index More...
 
HistogramCuts cut
 The corresponding cuts. More...
 

Detailed Description

preprocessed global index matrix, in CSR format Transform floating values to integer index in histogram This is a global histogram index.

Member Function Documentation

◆ GetFeatureCounts()

void xgboost::common::GHistIndexMatrix::GetFeatureCounts ( size_t *  counts) const
inline

◆ Init()

void xgboost::common::GHistIndexMatrix::Init ( DMatrix p_fmat,
int  max_num_bins 
)

◆ operator[]()

GHistIndexRow xgboost::common::GHistIndexMatrix::operator[] ( size_t  i) const
inline

Member Data Documentation

◆ cut

HistogramCuts xgboost::common::GHistIndexMatrix::cut

The corresponding cuts.

◆ hit_count

std::vector<size_t> xgboost::common::GHistIndexMatrix::hit_count

hit count of each index

◆ index

std::vector<uint32_t> xgboost::common::GHistIndexMatrix::index

The index data.

◆ row_ptr

std::vector<size_t> xgboost::common::GHistIndexMatrix::row_ptr

row pointer to rows by element position


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