How do I print the hyperparameters of a fit XGBoost model?

Viewed 147

If I fit an XGBoost model on data and set none of the parameters (all are defaults), how do I then print those settings?

xgb_outofbox = XGBClassifier(random_state=0).fit(X_train, y_train)

I'm looking to call something like xgb_outofbox.params_, but that doesn't work. I can't find any answers to this very simple question.

1 Answers

This can be done by printing the model object itself, i.e. just write:

xgb_outofbox
Related