code: def __init__(
      self,
      model: Callable,
      forecast_function: str = "forecast",
      reduce_function: Callable = None,
  ):
      super().__init__(model)
      self.forecast_function = forecast_function
      self.reduce_function = reduce_function
      if self.reduce_function is None:
          self.reduce_function = lambda X: np.mean(X, axis=0)
  
imports: from typing import Callable
  import numpy
label_desc: Use image node_id 1 to create a new Forecaster object from inherited base classes: Model with example: obj = Forecaster(model, forecast_function, reduce_function)