quantlab.model.predefined.xgb#
XGBoost regression head for the tree-model layer.
XGBoostRegressor is a LibraryModel (the numpy-based model base class in
quantlab.model.base). It trains an XGBoost Booster with xgb.train
on the rows the base builds from the factor panel (one per cell with a
valid training target) and predicts future returns row by row. The Booster is fit on a pooled concordance-correlation loss
(pooled_ccc_loss) through the custom objective ccc_objective, early
stopping uses xgboost’s native callback on the validation RMSE, and
per-factor feature importance is written to the tracking run after
training.
The module is named xgb.py rather than xgboost.py so it does not
shadow the xgboost package inside this package.
Classes
Predict future returns with an XGBoost Booster. |
Functions
Put |
|
Score a Booster's predictions for |
|
Gradient and hessian of the pooled CCC loss for |
|
Return |
|
Write a Booster's per-factor importance to a tracking run. |