#include <dmlc/registry.h>
#include <xgboost/base.h>
#include <xgboost/data.h>
#include <xgboost/host_device_vector.h>
#include <xgboost/linalg.h>
#include <xgboost/model.h>
#include <xgboost/task.h>
#include <cstdint>
#include <functional>
#include <string>
Go to the source code of this file.
|
| | xgboost |
| | Learner interface that integrates objective, gbm and evaluation together. This is the user facing XGBoost training module.
|
| |
◆ XGBOOST_REGISTER_OBJECTIVE
| #define XGBOOST_REGISTER_OBJECTIVE |
( |
|
UniqueId, |
|
|
|
Name |
|
) |
| |
Value: static DMLC_ATTRIBUTE_UNUSED ::xgboost::ObjFunctionReg & \
__make_ ## ObjFunctionReg ## _ ## UniqueId ## __ = \
::dmlc::Registry< ::xgboost::ObjFunctionReg>::Get()->__REGISTER__(Name)
Macro to register objective function.
.describe("Linear regression objective")
.set_body([]() {
return new RegLossObj(LossType::kLinearSquare);
});
#define XGBOOST_REGISTER_OBJECTIVE(UniqueId, Name)
Macro to register objective function.
Definition: objective.h:162