Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
xgboost::common::SortedQuantile Struct Reference

Quantile structure accepts sorted data, extracted from histmaker. More...

#include <quantile.h>

Public Member Functions

void Init (unsigned max_size)
 
void Push (bst_float fvalue, bst_float w, unsigned max_size)
 push a new element to sketch
 
void Finalize (unsigned max_size)
 push final unfinished value to the sketch
 

Data Fields

double sum_total {0.0}
 total sum of amount to be met
 
double rmin
 statistics used in the sketch
 
double wmin
 
bst_float last_fvalue
 last seen feature value
 
double next_goal
 current size of sketch
 
common::WXQuantileSketch< bst_float, bst_float > * sketch
 

Detailed Description

Quantile structure accepts sorted data, extracted from histmaker.

Member Function Documentation

◆ Push()

void xgboost::common::SortedQuantile::Push ( bst_float  fvalue,
bst_float  w,
unsigned  max_size 
)
inline

push a new element to sketch

Parameters
fvaluefeature value, comes in sorted ascending order
wweight
max_size

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