Medial Code Documentation
|
Objective function for multiclass classification, use one-vs-all binary objective function. More...
#include <multiclass_objective.hpp>
Public Member Functions | |
MulticlassOVA (const Config &config) | |
MulticlassOVA (const std::vector< std::string > &strs) | |
void | Init (const Metadata &metadata, data_size_t num_data) override |
Initialize. | |
void | GetGradients (const double *score, score_t *gradients, score_t *hessians) const override |
calculating first order derivative of loss function | |
const char * | GetName () const override |
void | ConvertOutput (const double *input, double *output) const override |
std::string | ToString () const override |
bool | SkipEmptyClass () const override |
int | NumModelPerIteration () const override |
int | NumPredictOneRow () const override |
bool | NeedAccuratePrediction () const override |
The prediction should be accurate or not. True will disable early stopping for prediction. | |
double | BoostFromScore (int class_id) const override |
bool | ClassNeedTrain (int class_id) const override |
![]() | |
virtual | ~ObjectiveFunction () |
virtual destructor | |
virtual bool | IsConstantHessian () const |
virtual bool | IsRenewTreeOutput () const |
virtual double | RenewTreeOutput (double ori_output, const double *, const data_size_t *, const data_size_t *, data_size_t) const |
virtual double | RenewTreeOutput (double ori_output, double, const data_size_t *, const data_size_t *, data_size_t) const |
ObjectiveFunction & | operator= (const ObjectiveFunction &)=delete |
Disable copy. | |
ObjectiveFunction (const ObjectiveFunction &)=delete | |
Disable copy. | |
Additional Inherited Members | |
![]() | |
static LIGHTGBM_EXPORT ObjectiveFunction * | CreateObjectiveFunction (const std::string &type, const Config &config) |
Create object of objective function. | |
static LIGHTGBM_EXPORT ObjectiveFunction * | CreateObjectiveFunction (const std::string &str) |
Load objective function from string object. | |
Objective function for multiclass classification, use one-vs-all binary objective function.
|
inlineoverridevirtual |
Reimplemented from LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
Reimplemented from LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
Reimplemented from LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
calculating first order derivative of loss function
score | prediction score in this round \gradients Output gradients \hessians Output hessians |
Implements LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
Implements LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
Initialize.
metadata | Label data |
num_data | Number of data |
Implements LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
The prediction should be accurate or not. True will disable early stopping for prediction.
Reimplemented from LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
Reimplemented from LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
Reimplemented from LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
Reimplemented from LightGBM::ObjectiveFunction.
|
inlineoverridevirtual |
Implements LightGBM::ObjectiveFunction.