Medial Code Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions
xgboost::common::WXQSummary< DType, RType > Struct Template Reference

try to do efficient pruning More...

#include <quantile.h>

Inheritance diagram for xgboost::common::WXQSummary< DType, RType >:
xgboost::common::WQSummary< DType, RType >

Public Types

using Entry = typename WQSummary< DType, RType >::Entry
 

Public Member Functions

 WXQSummary (Entry *data, size_t size)
 
void SetPrune (const WQSummary< DType, RType > &src, size_t maxsize)
 
- Public Member Functions inherited from xgboost::common::WQSummary< DType, RType >
 WQSummary (Entry *data, size_t size)
 
RType MaxError () const
 
Entry Query (DType qvalue, size_t &istart) const
 query qvalue, start from istart
 
RType MaxRank () const
 
void CopyFrom (const WQSummary &src)
 copy content from src
 
void MakeFromSorted (const Entry *entries, size_t n)
 
void CheckValid (RType eps) const
 debug function, validate whether the summary run consistency check to check if it is a valid summary
 
void SetPrune (const WQSummary &src, size_t maxsize)
 set current summary to be pruned summary of src assume data field is already allocated to be at least maxsize
 
void SetCombine (const WQSummary &sa, const WQSummary &sb)
 set current summary to be merged summary of sa and sb
 
void Print () const
 
void FixError (RType *err_mingap, RType *err_maxgap, RType *err_wgap) const
 

Static Public Member Functions

static bool CheckLarge (const Entry &e, RType chunk)
 

Additional Inherited Members

- Data Fields inherited from xgboost::common::WQSummary< DType, RType >
Entrydata
 data field
 
size_t size
 number of elements in the summary
 

Detailed Description

template<typename DType, typename RType>
struct xgboost::common::WXQSummary< DType, RType >

try to do efficient pruning


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