Menu

Creating the Model

Creating the Model

The first step is creating an instance of the XGBoost Regressor.

Code

**model = XGBRegressor()**

Explanation

This statement initializes the model with default parameters.

At this stage:

  • No training has occurred.
  • No patterns have been learned.
  • The model is simply prepared for training.

The actual learning process begins when the model is fitted to the training data.