Medial Code Documentation
|
Public Member Functions | |
HistogramCuts (HistogramCuts const &that) | |
HistogramCuts (HistogramCuts &&that) noexcept(true) | |
HistogramCuts & | operator= (HistogramCuts const &that) |
HistogramCuts & | operator= (HistogramCuts &&that) noexcept(true) |
bst_bin_t | FeatureBins (bst_feature_t feature) const |
std::vector< uint32_t > const & | Ptrs () const |
std::vector< float > const & | Values () const |
std::vector< float > const & | MinValues () const |
bool | HasCategorical () const |
float | MaxCategory () const |
void | SetCategorical (bool has_cat, float max_cat) |
Set meta info about categorical features. | |
bst_bin_t | TotalBins () const |
bst_bin_t | SearchBin (float value, bst_feature_t column_id, std::vector< uint32_t > const &ptrs, std::vector< float > const &values) const |
bst_bin_t | SearchBin (float value, bst_feature_t column_id) const |
bst_bin_t | SearchBin (Entry const &e) const |
Search the bin index for numerical feature. | |
bst_bin_t | SearchCatBin (float value, bst_feature_t fidx, std::vector< uint32_t > const &ptrs, std::vector< float > const &vals) const |
Search the bin index for categorical feature. | |
bst_bin_t | SearchCatBin (float value, bst_feature_t fidx) const |
bst_bin_t | SearchCatBin (Entry const &e) const |
Static Public Member Functions | |
static float | NumericBinValue (std::vector< std::uint32_t > const &ptrs, std::vector< float > const &vals, std::vector< float > const &mins, bst_feature_t fidx, bst_bin_t bin_idx) |
Return numerical bin value given bin index. | |
Data Fields | |
HostDeviceVector< float > | cut_values_ |
HostDeviceVector< uint32_t > | cut_ptrs_ |
HostDeviceVector< float > | min_vals_ |
Protected Member Functions | |
void | Swap (HistogramCuts &&that) noexcept(true) |
void | Copy (HistogramCuts const &that) |
|
inline |
Set meta info about categorical features.
has_cat | Do we have categorical feature in the data? |
max_cat | The maximum categorical value in all features. |