interface of linear updater
More...
#include <linear_updater.h>
interface of linear updater
◆ ~LinearUpdater()
virtual xgboost::LinearUpdater::~LinearUpdater |
( |
| ) |
|
|
virtualdefault |
◆ Create()
static LinearUpdater* xgboost::LinearUpdater::Create |
( |
const std::string & |
name | ) |
|
|
static |
Create a linear updater given name.
- Parameters
-
name | Name of the linear updater. |
◆ Init()
virtual void xgboost::LinearUpdater::Init |
( |
const std::vector< std::pair< std::string, std::string > > & |
args | ) |
|
|
pure virtual |
Initialize the updater with given arguments.
- Parameters
-
args | arguments to the objective function. |
◆ Update()
Updates linear model given gradients.
- Parameters
-
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. |
The documentation for this class was generated from the following file: