xgboost
Public Member Functions | List of all members
xgboost::common::GHistBuilder Class Reference

builder for histograms of gradient statistics More...

#include <hist_util.h>

Collaboration diagram for xgboost::common::GHistBuilder:
Collaboration graph

Public Member Functions

 GHistBuilder ()=default
 
 GHistBuilder (size_t nthread, uint32_t nbins)
 
void BuildHist (const std::vector< GradientPair > &gpair, const RowSetCollection::Elem row_indices, const GHistIndexMatrix &gmat, GHistRow hist, bool isDense)
 
void BuildBlockHist (const std::vector< GradientPair > &gpair, const RowSetCollection::Elem row_indices, const GHistIndexBlockMatrix &gmatb, GHistRow hist)
 
void SubtractionTrick (GHistRow self, GHistRow sibling, GHistRow parent)
 
uint32_t GetNumBins () const
 

Detailed Description

builder for histograms of gradient statistics

Constructor & Destructor Documentation

◆ GHistBuilder() [1/2]

xgboost::common::GHistBuilder::GHistBuilder ( )
default

◆ GHistBuilder() [2/2]

xgboost::common::GHistBuilder::GHistBuilder ( size_t  nthread,
uint32_t  nbins 
)
inline

Member Function Documentation

◆ BuildBlockHist()

void xgboost::common::GHistBuilder::BuildBlockHist ( const std::vector< GradientPair > &  gpair,
const RowSetCollection::Elem  row_indices,
const GHistIndexBlockMatrix gmatb,
GHistRow  hist 
)

◆ BuildHist()

void xgboost::common::GHistBuilder::BuildHist ( const std::vector< GradientPair > &  gpair,
const RowSetCollection::Elem  row_indices,
const GHistIndexMatrix gmat,
GHistRow  hist,
bool  isDense 
)

◆ GetNumBins()

uint32_t xgboost::common::GHistBuilder::GetNumBins ( ) const
inline

◆ SubtractionTrick()

void xgboost::common::GHistBuilder::SubtractionTrick ( GHistRow  self,
GHistRow  sibling,
GHistRow  parent 
)

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