|
| CrossEntropyMetric (const Config &) |
|
void | Init (const Metadata &metadata, data_size_t num_data) override |
| Initialize.
|
|
std::vector< double > | Eval (const double *score, const ObjectiveFunction *objective) const override |
| Calcaluting and printing metric result.
|
|
const std::vector< std::string > & | GetName () const override |
|
double | factor_to_bigger_better () const override |
|
virtual | ~Metric () |
| virtual destructor
|
|
Metric & | operator= (const Metric &)=delete |
| Disable copy.
|
|
| Metric (const Metric &)=delete |
| Disable copy.
|
|
◆ Eval()
std::vector< double > LightGBM::CrossEntropyMetric::Eval |
( |
const double * |
score, |
|
|
const ObjectiveFunction * |
objective |
|
) |
| const |
|
inlineoverridevirtual |
Calcaluting and printing metric result.
- Parameters
-
score | Current prediction score |
Implements LightGBM::Metric.
◆ factor_to_bigger_better()
double LightGBM::CrossEntropyMetric::factor_to_bigger_better |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetName()
const std::vector< std::string > & LightGBM::CrossEntropyMetric::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Init()
Initialize.
- Parameters
-
test_name | Specific name for this metric, will output on log |
metadata | Label data |
num_data | Number of data |
Implements LightGBM::Metric.
The documentation for this class was generated from the following file: