A gamma objective is a regression loss for strictly positive, right-skewed targets: many small values and a few substantially larger ones. It is useful when ordinary linear regression does not capture the target’s distribution or relationships. section 7.2.4
In an XGBoost regressor, configure it as objective='reg:gamma'. A first model using this objective produced only positive predictions, approximately halved baseline MAE, and reached an R-squared score near 0.7 on cross-validation. section 7.2.4
First XGBoost model
An XGBRegressor combines booster='gbtree', objective='reg:gamma', 300 estimators, and max_depth=6. Cross-validation then checks prediction range, R-squared, RMSE, and MAE; the reported MAE is 7,227.435 and R-squared is 0.693.
Treat gamma as one candidate rather than an automatic choice. Hyperparameter optimization can compare squared error, gamma, and Tweedie objectives; the reported best configuration selected Tweedie instead, suggesting that the broader target behavior may favor another distribution. section 7.2.5
