xgboost
|
same as summary, but use STL to backup the space More...
#include <quantile.h>
Public Member Functions | |
SummaryContainer (const SummaryContainer &src) | |
SummaryContainer () | |
void | Reserve (size_t size) |
reserve space for summary More... | |
void | SetMerge (const Summary *begin, const Summary *end) |
set the space to be merge of all Summary arrays More... | |
void | Reduce (const Summary &src, size_t max_nbyte) |
do elementwise combination of summary array this[i] = combine(this[i], src[i]) for each i More... | |
template<typename TStream > | |
void | Save (TStream &fo) const |
save the data structure into stream More... | |
template<typename TStream > | |
void | Load (TStream &fi) |
load data structure from input stream More... | |
Static Public Member Functions | |
static size_t | CalcMemCost (size_t nentry) |
return the number of bytes this data structure cost in serialization More... | |
Public Attributes | |
std::vector< Entry > | space |
same as summary, but use STL to backup the space
|
inline |
|
inline |
|
inlinestatic |
return the number of bytes this data structure cost in serialization
|
inline |
load data structure from input stream
|
inline |
do elementwise combination of summary array this[i] = combine(this[i], src[i]) for each i
src | the source summary |
max_nbyte | maximum number of byte allowed in here |
|
inline |
reserve space for summary
|
inline |
save the data structure into stream
|
inline |
set the space to be merge of all Summary arrays
begin | beginning position in the summary array |
end | ending position in the Summary array |
std::vector<Entry> xgboost::common::QuantileSketchTemplate< DType, RType, TSummary >::SummaryContainer::space |