You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team,
We have a Booster trained using xgboost.train() and need to use it inside XGBClassifer() when doing score calibration. Here is the code, without explicitly setting n_classes_ and classes_, CalibratedClassifierCV complains that the model is not pre-fitted. With these settings, the predicted score using XGBClassifier is slightly different from the booster itself. Do you know any possible reasons and how to make the score 100% match?
xgb_classifier = XGBClassifier()
xgb_classifier.Booster = xgb_booster
xgb_classifier.n_classes = 2
xgb_classifier.classes_ = np.array([0, 1])
XGBoost version: 1.5.0
thank you,