xgboost

Public Types | Public Member Functions | List of all members
xgboost::common::GHistBuilder< GradientSumT > Class Template Reference

builder for histograms of gradient statistics More...

`#include <hist_util.h>`

Collaboration diagram for xgboost::common::GHistBuilder< GradientSumT >:

## Public Types
using | GHistRowT = GHistRow< GradientSumT >

## Public Member Functions
| GHistBuilder ()=default
| GHistBuilder (uint32_t nbins)
template<bool any_missing>
void | BuildHist (const std::vector< GradientPair > &gpair, const RowSetCollection::Elem row_indices, const GHistIndexMatrix &gmat, GHistRowT hist) const
uint32_t | GetNumBins () const

## Detailed Description

### template<typename GradientSumT>
class xgboost::common::GHistBuilder< GradientSumT >

builder for histograms of gradient statistics

## Member Typedef Documentation

## ◆ GHistRowT

template<typename GradientSumT >

using xgboost::common::GHistBuilder< GradientSumT >::GHistRowT = GHistRow<GradientSumT>

## Constructor & Destructor Documentation

## ◆ GHistBuilder() [1/2]

template<typename GradientSumT >

xgboost::common::GHistBuilder< GradientSumT >::GHistBuilder | ( |  | ) |
| default

## ◆ GHistBuilder() [2/2]

template<typename GradientSumT >

xgboost::common::GHistBuilder< GradientSumT >::GHistBuilder | ( | uint32_t | nbins | ) |
| inline explicit

## Member Function Documentation

## ◆ BuildHist()

template<typename GradientSumT >
template<bool any_missing>

void xgboost::common::GHistBuilder< GradientSumT >::BuildHist | ( | const std::vector< GradientPair > & | gpair,
|  | const RowSetCollection::Elem | row_indices,
|  | const GHistIndexMatrix & | gmat,
|  | GHistRowT | hist
| ) |  | const

## ◆ GetNumBins()

template<typename GradientSumT >

uint32_t xgboost::common::GHistBuilder< GradientSumT >::GetNumBins | ( |  | ) | const
| inline

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

- /home/runner/work/xgboost/xgboost/src/common/hist_util.h