0
$\begingroup$

I am using xgboost model for binary classification problem. I am using 5 fold cross-validation (stratified as class imbalance) which results into the following.

xgb_model = xgb.XGBClassifier(objective="binary:logistic", random_state=42)

scores = cross_val_score(xgb_model, X, y, scoring="roc_auc", cv=5)

>> [0.97167546 0.96833211 0.58207582 0.90730687 0.93105652]

Why is one out of the above five AUC scores very low(~0.58207582)?

$\endgroup$
  • 2
    $\begingroup$ I would investigate the contents of the fold. Perhaps they are harder examples, for whatever reason? Or by coincidence they're all different in some way from the training data for that fold? $\endgroup$ – Sycorax says Reinstate Monica Feb 14 at 17:37
  • 2
    $\begingroup$ Is it reproducible with a different random state value (or without any)? $\endgroup$ – itdxer Feb 14 at 17:39
  • $\begingroup$ @itdxer Yes, I just checked and it gives the same results. $\endgroup$ – Arch Desai Feb 14 at 17:42
  • $\begingroup$ Can you please provide a reproducible example? $\endgroup$ – usεr11852 Feb 25 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.