class_docstr: Base class for interfacing pmdarima.
class_docstr_tok: ["Base","class","for","interfacing","pmdarima","."]
docstr: Fit to training data.
  
  Parameters
  ----------
  y : pd.Series
      Target time series to which to fit the forecaster.
  fh : int, list, np.array or ForecastingHorizon, optional (default=None)
      The forecasters horizon with the steps ahead to to predict.
  X : pd.DataFrame, optional (default=None)
      Exogenous variables are ignored
  
  Returns
  -------
  self : returns an instance of self.
docstr_tok: ["Fit","to","training","data",".","Parameters","--","--","--","--","--","y",":","pd.Series","Target","time","series","to","which","to","fit","the","forecaster",".","fh",":","int",",","list",",","np.array","or","ForecastingHorizon",",","optional","(","default=None",")","The","forecasters","horizon","with","the","steps","ahead","to","to","predict",".","X",":","pd.DataFrame",",","optional","(","default=None",")","Exogenous","variables","are","ignored","Returns","--","--","--","-","self",":","returns","an","instance","of","self","."]
code: def _fit(self, y, X, fh):
      """Fit to training data.
  
      Parameters
      ----------
      y : pd.Series
          Target time series to which to fit the forecaster.
      fh : int, list, np.array or ForecastingHorizon, optional (default=None)
          The forecasters horizon with the steps ahead to to predict.
      X : pd.DataFrame, optional (default=None)
          Exogenous variables are ignored
  
      Returns
      -------
      self : returns an instance of self.
      """
      if X is not None:
          X = X.loc[y.index]
      self._forecaster = self._instantiate_model()
      self._forecaster.fit(y, X=X)
      return self
  
file_path: sktime/sktime/forecasting/base/adapters/_pmdarima.py
imports: import pandas
  from sktime.datatypes._utilities import get_slice
  from sktime.forecasting.base import BaseForecaster
  from sktime.forecasting.base._base import DEFAULT_ALPHA
label_desc: Use image node_id 3 for calling the _PmdArimaAdapter obj's underlying member method code with example usage: obj._fit(y, X, fh) and returns: self