|
Medial Code Documentation
|
Objective function for multiclass classification, use softmax as objective functions. More...
#include <multiclass_objective.hpp>
Public Member Functions | |
| MulticlassSoftmax (const Config &config) | |
| MulticlassSoftmax (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 | |
| void | ConvertOutput (const double *input, double *output) const override |
| const char * | GetName () 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 |
Public Member Functions inherited from LightGBM::ObjectiveFunction | |
| 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 Public Member Functions inherited from LightGBM::ObjectiveFunction | |
| 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 softmax as objective functions.
|
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.