8 #include <xgboost/logging.h>
41 LOG(FATAL) <<
"Reduced gradient is not yet supported.";
47 LOG(FATAL) <<
"Reduced gradient is not yet supported.";
Defines configuration macros and basic types for xgboost.
A tensor view with static type and dimension. It implements indexing and slicing.
Definition: linalg.h:278
A tensor storage. To use it for other functionality like slicing one needs to obtain a view first....
Definition: linalg.h:760
auto View(DeviceOrd device)
Get a TensorView for this tensor.
Definition: linalg.h:855
auto Shape() const
Definition: linalg.h:882
Linear algebra related utilities.
Learner interface that integrates objective, gbm and evaluation together. This is the user facing XGB...
Definition: base.h:89
Runtime context for XGBoost. Contains information like threads and device.
Definition: context.h:142
DeviceOrd Device() const
Get the current device and ordinal.
Definition: context.h:207
Container for gradient produced by objective.
Definition: gradient.h:16
linalg::Matrix< GradientPair > * Grad()
Definition: gradient.h:37
bool HasValueGrad() const noexcept
Definition: gradient.h:22
linalg::Matrix< GradientPair > const * Grad() const
Definition: gradient.h:36
linalg::Matrix< GradientPair > value_gpair
Gradient used for tree leaf value, optional.
Definition: gradient.h:20
linalg::MatrixView< GradientPair const > ValueGrad(Context const *ctx) const
Definition: gradient.h:29
std::size_t NumSplitTargets() const noexcept
Definition: gradient.h:24
linalg::Matrix< GradientPair > gpair
Gradient used for multi-target tree split and linear model.
Definition: gradient.h:18
std::size_t NumTargets() const noexcept
Definition: gradient.h:25
linalg::Matrix< GradientPair > const * FullGradOnly() const
Definition: gradient.h:39
linalg::Matrix< GradientPair > * FullGradOnly()
Definition: gradient.h:45