xgboost
|
interface of linear updater More...
#include <linear_updater.h>
Public Member Functions | |
~LinearUpdater () override=default | |
virtual destructor More... | |
virtual void | Configure (const std::vector< std::pair< std::string, std::string > > &args)=0 |
Initialize the updater with given arguments. More... | |
virtual void | Update (HostDeviceVector< GradientPair > *in_gpair, DMatrix *data, gbm::GBLinearModel *model, double sum_instance_weight)=0 |
Updates linear model given gradients. More... | |
![]() | |
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 LinearUpdater * | Create (const std::string &name, GenericParameter const *) |
Create a linear updater given name. More... | |
Protected Attributes | |
GenericParameter const * | ctx_ |
interface of linear updater
|
overridedefault |
virtual destructor
|
pure virtual |
Initialize the updater with given arguments.
args | arguments to the objective function. |
|
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. |
|
protected |