xgboost
|
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 More... | |
void | Finalize (unsigned max_size) |
push final unfinished value to the sketch More... | |
Public Attributes | |
double | sum_total {0.0} |
total sum of amount to be met More... | |
double | rmin |
statistics used in the sketch More... | |
double | wmin |
bst_float | last_fvalue |
last seen feature value More... | |
double | next_goal |
current size of sketch More... | |
common::WXQuantileSketch< bst_float, bst_float > * | sketch |
Quantile structure accepts sorted data, extracted from histmaker.
|
inline |
push final unfinished value to the sketch
|
inline |
|
inline |
push a new element to sketch
fvalue | feature value, comes in sorted ascending order |
w | weight |
max_size |
bst_float xgboost::common::SortedQuantile::last_fvalue |
last seen feature value
double xgboost::common::SortedQuantile::next_goal |
current size of sketch
double xgboost::common::SortedQuantile::rmin |
statistics used in the sketch
common::WXQuantileSketch<bst_float, bst_float>* xgboost::common::SortedQuantile::sketch |
double xgboost::common::SortedQuantile::sum_total {0.0} |
total sum of amount to be met
double xgboost::common::SortedQuantile::wmin |