|
Medial Code Documentation
|
Metric for binary classification task. Use static class "PointWiseLossCalculator" to calculate loss point-wise. More...
#include <binary_metric.hpp>
Public Member Functions | |
| BinaryMetric (const Config &) | |
| void | Init (const Metadata &metadata, data_size_t num_data) override |
| Initialize. | |
| const std::vector< std::string > & | GetName () const override |
| double | factor_to_bigger_better () const override |
| std::vector< double > | Eval (const double *score, const ObjectiveFunction *objective) const override |
| Calcaluting and printing metric result. | |
Public Member Functions inherited from LightGBM::Metric | |
| virtual | ~Metric () |
| virtual destructor | |
| Metric & | operator= (const Metric &)=delete |
| Disable copy. | |
| Metric (const Metric &)=delete | |
| Disable copy. | |
Additional Inherited Members | |
Static Public Member Functions inherited from LightGBM::Metric | |
| static LIGHTGBM_EXPORT Metric * | CreateMetric (const std::string &type, const Config &config) |
| Create object of metrics. | |
Metric for binary classification task. Use static class "PointWiseLossCalculator" to calculate loss point-wise.
|
inlineoverridevirtual |
Calcaluting and printing metric result.
| score | Current prediction score |
Implements LightGBM::Metric.
|
inlineoverridevirtual |
Implements LightGBM::Metric.
|
inlineoverridevirtual |
Implements LightGBM::Metric.
|
inlineoverridevirtual |
Initialize.
| test_name | Specific name for this metric, will output on log |
| metadata | Label data |
| num_data | Number of data |
Implements LightGBM::Metric.