Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes
xgboost::linear::ShotgunUpdater Class Reference
Inheritance diagram for xgboost::linear::ShotgunUpdater:
xgboost::LinearUpdater xgboost::Configurable

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.
 
- Public Member Functions inherited from xgboost::LinearUpdater
 ~LinearUpdater () override=default
 virtual destructor
 

Protected Attributes

LinearTrainParam param_
 
std::unique_ptr< FeatureSelectorselector_
 
- Protected Attributes inherited from xgboost::LinearUpdater
Context const * ctx_
 

Additional Inherited Members

- Static Public Member Functions inherited from xgboost::LinearUpdater
static LinearUpdaterCreate (const std::string &name, Context const *)
 Create a linear updater given name.
 

Member Function Documentation

◆ Configure()

void xgboost::linear::ShotgunUpdater::Configure ( Args const &  args)
inlineoverridevirtual

Initialize the updater with given arguments.

Parameters
argsarguments to the objective function.

Implements xgboost::LinearUpdater.

◆ LoadConfig()

void xgboost::linear::ShotgunUpdater::LoadConfig ( Json const &  in)
inlineoverridevirtual

Load configuration from JSON object.

Parameters
inJSON object containing the configuration

Implements xgboost::Configurable.

◆ SaveConfig()

void xgboost::linear::ShotgunUpdater::SaveConfig ( Json out) const
inlineoverridevirtual

Save configuration to JSON object.

Parameters
outpointer to output JSON object

Implements xgboost::Configurable.

◆ Update()

void xgboost::linear::ShotgunUpdater::Update ( HostDeviceVector< GradientPair > *  in_gpair,
DMatrix data,
gbm::GBLinearModel model,
double  sum_instance_weight 
)
inlineoverridevirtual

Updates linear model given gradients.

Parameters
in_gpairThe gradient pair statistics of the data.
dataInput data matrix.
modelModel to be updated.
sum_instance_weightThe sum instance weights, used to normalise l1/l2 penalty.

Implements xgboost::LinearUpdater.


The documentation for this class was generated from the following file: