class_docstr: XGBoost-based model, intended for usage in forecasting tasks.
class_docstr_tok: ["XGBoost-based","model",",","intended","for","usage","in","forecasting","tasks","."]
code: def __init__(
      self,
      stop_after: float,
      target: str,
      dtype_dict: Dict[str, str],
      input_cols: List[str],
      fit_on_dev: bool,
      target_encoder: BaseEncoder,
      ts_analysis: Dict[str, object],
      use_stl: bool,
      tss: TimeseriesSettings,
  ):
      super().__init__(stop_after)
      self.tss = tss
      self.horizon = tss.horizon
      self.submodel_stop_after = stop_after / self.horizon
      self.target = target
      self.offset_pred_cols = [
          f"{self.target}_timestep_{i}" for i in range(1, self.horizon)
      ]
      if set(input_cols) != {self.tss.order_by}:
          input_cols.remove(self.tss.order_by)
      for col in self.offset_pred_cols:
          dtype_dict[col] = dtype_dict[self.target]
      self.models = [
          XGBoostMixer(
              self.submodel_stop_after,
              target_col,
              dtype_dict,
              input_cols,
              False,  # fit_on_dev,
              False,  # use_optuna
              target_encoder,
          )
          for _, target_col in zip(
              range(self.horizon), [target] + self.offset_pred_cols
          )
      ]
      self.ts_analysis = ts_analysis
      self.supports_proba = False
      self.use_stl = False
      self.stable = False
  
file_path: lightwood/lightwood/mixer/xgboost_array.py
imports: from typing import Dict, List, Union, Optional
  from copy import deepcopy
  import numpy
  import pandas
  from lightwood.helpers.log import log
  from lightwood.encoder.base import BaseEncoder
  from lightwood.mixer.base import BaseMixer
  from lightwood.mixer.xgboost import XGBoostMixer
  from lightwood.api.types import PredictionArguments, TimeseriesSettings
  from lightwood.data.encoded_ds import EncodedDs, ConcatedEncodedDs
label_desc: Use image node_id 1 to create a new XGBoostArrayMixer object from inherited base classes: BaseMixer with example: obj = XGBoostArrayMixer(stop_after, target, dtype_dict, input_cols, fit_on_dev, target_encoder, ts_analysis, use_stl, tss)