xgboost
|
Parameters for constructing histogram index batches. More...
#include <data.h>
Public Member Functions | |
BatchParam ()=default | |
Exact or others that don't need histogram. More... | |
BatchParam (bst_bin_t max_bin, double sparse_thresh) | |
Used by the hist tree method. More... | |
BatchParam (bst_bin_t max_bin, common::Span< float const > hessian, bool regenerate) | |
Used by the approx tree method. More... | |
bool | ParamNotEqual (BatchParam const &other) const |
bool | Initialized () const |
BatchParam | MakeCache () const |
Make a copy of self for DMatrix to describe how its existing index was generated. More... | |
Public Attributes | |
bst_bin_t | max_bin {0} |
Maximum number of bins per feature for histograms. More... | |
common::Span< float const > | hess |
Hessian, used for sketching with future approx implementation. More... | |
bool | regen {false} |
Whether should we force DMatrix to regenerate the batch. Only used for GHistIndex. More... | |
bool | forbid_regen {false} |
Forbid regenerating the gradient index. Used for internal validation. More... | |
double | sparse_thresh {std::numeric_limits<double>::quiet_NaN()} |
Parameter used to generate column matrix for hist. More... | |
bool | prefetch_copy {true} |
Used for GPU external memory. Whether to copy the data into device. More... | |
std::int32_t | n_prefetch_batches {3} |
The number of batches to pre-fetch for external memory. More... | |
Parameters for constructing histogram index batches.
|
default |
Exact or others that don't need histogram.
|
inline |
Used by the hist tree method.
|
inline |
Used by the approx tree method.
Get batch with sketch weighted by hessian. The batch will be regenerated if the span is changed, so caller should keep the span for each iteration.
|
inline |
|
inline |
Make a copy of self for DMatrix to describe how its existing index was generated.
|
inline |
bool xgboost::BatchParam::forbid_regen {false} |
Forbid regenerating the gradient index. Used for internal validation.
common::Span<float const> xgboost::BatchParam::hess |
Hessian, used for sketching with future approx implementation.
bst_bin_t xgboost::BatchParam::max_bin {0} |
Maximum number of bins per feature for histograms.
std::int32_t xgboost::BatchParam::n_prefetch_batches {3} |
The number of batches to pre-fetch for external memory.
bool xgboost::BatchParam::prefetch_copy {true} |
Used for GPU external memory. Whether to copy the data into device.
This affects only the current round of iteration.
bool xgboost::BatchParam::regen {false} |
Whether should we force DMatrix to regenerate the batch. Only used for GHistIndex.
double xgboost::BatchParam::sparse_thresh {std::numeric_limits<double>::quiet_NaN()} |
Parameter used to generate column matrix for hist.