Medial Code Documentation
|
Huber loss for regression task. More...
#include <regression_metric.hpp>
Public Member Functions | |
HuberLossMetric (const Config &config) | |
![]() | |
RegressionMetric (const Config &config) | |
const std::vector< std::string > & | GetName () const override |
double | factor_to_bigger_better () const override |
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. | |
![]() | |
virtual | ~Metric () |
virtual destructor | |
Metric & | operator= (const Metric &)=delete |
Disable copy. | |
Metric (const Metric &)=delete | |
Disable copy. | |
Static Public Member Functions | |
static double | LossOnPoint (label_t label, double score, const Config &config) |
static const char * | Name () |
![]() | |
static double | AverageLoss (double sum_loss, double sum_weights) |
static void | CheckLabel (label_t) |
![]() | |
static LIGHTGBM_EXPORT Metric * | CreateMetric (const std::string &type, const Config &config) |
Create object of metrics. | |
Huber loss for regression task.