XGBoost validation error rising after round 60 in SageMaker

MLA-C02 ML Model and Foundation Model (FM) Development Medium Question 30 of 30

An ML engineer is training a model by using the Amazon SageMaker AI built-in XGBoost algorithm. Training error continues to decrease, but validation error starts to increase after boosting round 60. All hyperparameters use default values except max_depth, which is set to 14, and subsample and colsample_bytree, which are both set to 0.6.

Which hyperparameter change is MOST likely to improve validation performance?

Show answer and explanation

CLower max_depth and raise lambda

Rising validation error against falling training error is overfitting, and max_depth at 14 is the cause: increasing max_depth makes a model more complex and likely to overfit, while raising lambda makes it conservative. Raising depth and lowering min_child_weight loosens both limits, lower eta with more rounds leaves depth untouched, and raising the two sampling ratios back toward 1 removes the randomization that is currently holding overfitting back.

Source: docs.aws.amazon.com/sagemaker/latest/dg/xgboost_hyperparame…

Anonymous, no account needed. Your tally stays in this browser.

Next question Start 5 timed questions Browse all 30 original MLA-C02 practice questions