Implementing gradient boosting with the XGBoost algorithm