Medial Code Documentation
|
Coordinate descent algorithm that updates one feature per iteration. More...
Public Member Functions | |
void | Configure (Args const &args) override |
Initialize the updater with given arguments. | |
void | LoadConfig (Json const &in) override |
Load configuration from JSON object. | |
void | SaveConfig (Json *p_out) const override |
Save configuration to JSON object. | |
void | Update (HostDeviceVector< GradientPair > *in_gpair, DMatrix *p_fmat, gbm::GBLinearModel *model, double sum_instance_weight) override |
Updates linear model given gradients. | |
void | UpdateFeature (int fidx, int group_idx, std::vector< GradientPair > *in_gpair, DMatrix *p_fmat, gbm::GBLinearModel *model) |
![]() | |
~LinearUpdater () override=default | |
virtual destructor | |
Additional Inherited Members | |
![]() | |
static LinearUpdater * | Create (const std::string &name, Context const *) |
Create a linear updater given name. | |
![]() | |
Context const * | ctx_ |
Coordinate descent algorithm that updates one feature per iteration.
|
inlineoverridevirtual |
Initialize the updater with given arguments.
args | arguments to the objective function. |
Implements xgboost::LinearUpdater.
|
inlineoverridevirtual |
Load configuration from JSON object.
in | JSON object containing the configuration |
Implements xgboost::Configurable.
|
inlineoverridevirtual |
Save configuration to JSON object.
out | pointer to output JSON object |
Implements xgboost::Configurable.
|
inlineoverridevirtual |
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. |
Implements xgboost::LinearUpdater.