Retrieve hyperparameters from a fitted xgboost model object
model.get_params(deep=True) should show n_estimators
Then use model.get_xgb_params() for xgboost specific parameters.
Is there a way to retrieve from the fitted xgboost object the hyper-parameters used to train the model. More specifically, I would like to know the number of estimators (i.e. trees) used in the model. Since I am using early stopping, the n_estimator parameter would not give me the resulting number of estimators in the model.