class_docstr: A predictor for XGBoost models.
  
  Args:
      model: The XGBoost booster to use for predictions.
      preprocessor: A preprocessor used to transform data batches prior
          to prediction.
code: def __init__(
      self,
      model: xgboost.Booster,
      preprocessor: Optional["Preprocessor"] = None,
  ):
      self.model = model
      super().__init__(preprocessor)
  
file_path: ray/python/ray/train/xgboost/xgboost_predictor.py
imports: from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  import pandas
  import xgboost
  from ray.air.constants import TENSOR_COLUMN_NAME
  from ray.air.data_batch_type import DataBatchType
  from ray.air.util.data_batch_conversion import _unwrap_ndarray_object_type_if_needed
  from ray.train.predictor import Predictor
  from ray.train.xgboost import XGBoostCheckpoint
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 1 to create a new XGBoostPredictor object from inherited base classes: Predictor with example: obj = XGBoostPredictor(model, preprocessor)