Does sklearn wrapper include DMatrix automatically?

When building XGBoost models in sklearn, I am unsure if I need to take the additional step of converting numPy arrays to DMatrices. Is this done automatically in scikit-learn?

Yes, fit() function creates DMatrix internally.

1 Like