Medial Code Documentation
|
Used to store some information for gain split point. More...
#include <split_info.hpp>
Public Member Functions | |
void | CopyTo (char *buffer) const |
void | CopyFrom (const char *buffer) |
void | Reset () |
bool | operator> (const SplitInfo &si) const |
bool | operator== (const SplitInfo &si) const |
Static Public Member Functions | |
static int | Size (int max_cat_threshold) |
Data Fields | |
int | feature = -1 |
Feature index. | |
uint32_t | threshold = 0 |
Split threshold. | |
data_size_t | left_count = 0 |
Left number of data after split. | |
data_size_t | right_count = 0 |
Right number of data after split. | |
int | num_cat_threshold = 0 |
double | left_output = 0.0 |
Left output after split. | |
double | right_output = 0.0 |
Right output after split. | |
double | gain = kMinScore |
Split gain. | |
double | left_sum_gradient = 0 |
Left sum gradient after split. | |
double | left_sum_hessian = 0 |
Left sum hessian after split. | |
double | right_sum_gradient = 0 |
Right sum gradient after split. | |
double | right_sum_hessian = 0 |
Right sum hessian after split. | |
std::vector< uint32_t > | cat_threshold |
bool | default_left = true |
True if default split is left. | |
int8_t | monotone_type = 0 |
double | min_constraint = -std::numeric_limits<double>::max() |
double | max_constraint = std::numeric_limits<double>::max() |
Used to store some information for gain split point.