|
xgboost
|
interface of objective function More...
#include <objective.h>


Public Member Functions | |
| ~ObjFunction () override=default | |
| virtual destructor More... | |
| virtual void | Configure (const std::vector< std::pair< std::string, std::string > > &args)=0 |
| Configure the objective with the specified parameters. More... | |
| virtual void | GetGradient (const HostDeviceVector< bst_float > &preds, const MetaInfo &info, int iteration, HostDeviceVector< GradientPair > *out_gpair)=0 |
| Get gradient over each of predictions, given existing information. More... | |
| virtual const char * | DefaultEvalMetric () const =0 |
| virtual void | PredTransform (HostDeviceVector< bst_float > *) |
| transform prediction values, this is only called when Prediction is called More... | |
| virtual void | EvalTransform (HostDeviceVector< bst_float > *io_preds) |
| transform prediction values, this is only called when Eval is called, usually it redirect to PredTransform More... | |
| virtual bst_float | ProbToMargin (bst_float base_score) const |
| transform probability value back to margin this is used to transform user-set base_score back to margin used by gradient boosting More... | |
Public Member Functions inherited from xgboost::Configurable | |
| virtual | ~Configurable ()=default |
| virtual void | LoadConfig (Json const &in)=0 |
| Load configuration from JSON object. More... | |
| virtual void | SaveConfig (Json *out) const =0 |
| Save configuration to JSON object. More... | |
Static Public Member Functions | |
| static ObjFunction * | Create (const std::string &name, GenericParameter const *tparam) |
| Create an objective function according to name. More... | |
Protected Attributes | |
| GenericParameter const * | tparam_ |
interface of objective function
|
overridedefault |
virtual destructor
|
pure virtual |
Configure the objective with the specified parameters.
| args | arguments to the objective function. |
|
static |
Create an objective function according to name.
| tparam | Generic parameters. |
| name | Name of the objective. |
|
pure virtual |
|
inlinevirtual |
transform prediction values, this is only called when Eval is called, usually it redirect to PredTransform
| io_preds | prediction values, saves to this vector as well |
|
pure virtual |
Get gradient over each of predictions, given existing information.
| preds | prediction of current round |
| info | information about labels, weights, groups in rank |
| iteration | current iteration number. |
| out_gpair | output of get gradient, saves gradient and second order gradient in |
|
inlinevirtual |
transform prediction values, this is only called when Prediction is called
| io_preds | prediction values, saves to this vector as well |
transform probability value back to margin this is used to transform user-set base_score back to margin used by gradient boosting
|
protected |
1.8.17