|
Medial Code Documentation
|
interface of linear updater More...
#include <linear_updater.h>
Public Member Functions | |
| ~LinearUpdater () override=default | |
| virtual destructor | |
| virtual void | Configure (const std::vector< std::pair< std::string, std::string > > &args)=0 |
| Initialize the updater with given arguments. | |
| virtual void | Update (HostDeviceVector< GradientPair > *in_gpair, DMatrix *data, gbm::GBLinearModel *model, double sum_instance_weight)=0 |
| Updates linear model given gradients. | |
Public Member Functions inherited from xgboost::Configurable | |
| virtual void | LoadConfig (Json const &in)=0 |
| Load configuration from JSON object. | |
| virtual void | SaveConfig (Json *out) const =0 |
| Save configuration to JSON object. | |
Static Public Member Functions | |
| static LinearUpdater * | Create (const std::string &name, Context const *) |
| Create a linear updater given name. | |
Protected Attributes | |
| Context const * | ctx_ |
interface of linear updater
|
pure virtual |
Initialize the updater with given arguments.
| args | arguments to the objective function. |
Implemented in xgboost::linear::CoordinateUpdater, and xgboost::linear::ShotgunUpdater.
|
static |
Create a linear updater given name.
| name | Name of the linear updater. |
|
pure virtual |
Updates linear model given gradients.
| in_gpair | The gradient pair statistics of the data. |
| data | Input data matrix. |
| model | Model to be updated. |
| sum_instance_weight | The sum instance weights, used to normalise l1/l2 penalty. |
Implemented in xgboost::linear::CoordinateUpdater, and xgboost::linear::ShotgunUpdater.