class_docstr: Base class for interfacing tbats forecasting algorithms.
class_docstr_tok: ["Base","class","for","interfacing","tbats","forecasting","algorithms","."]
docstr: Fit to training data.
  
  Parameters
  ----------
  y : pd.Series
      Target time series to which to fit the forecaster.
  fh : int, list or np.array, optional (default=None)
      The forecasters horizon with the steps ahead to to predict.
  X : pd.DataFrame, optional (default=None)
      Exogenous variables (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","or","np.array",",","optional","(","default=None",")","The","forecasters","horizon","with","the","steps","ahead","to","to","predict",".","X",":","pd.DataFrame",",","optional","(","default=None",")","Exogenous","variables","(","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 or np.array, optional (default=None)
          The forecasters horizon with the steps ahead to to predict.
      X : pd.DataFrame, optional (default=None)
          Exogenous variables (ignored)
  
      Returns
      -------
      self : returns an instance of self.
      """
      self._create_model_class()
      self._forecaster = self._instantiate_model()
      self._forecaster = self._forecaster.fit(y)
      self._yname = y.name
  
      return self
  
file_path: sktime/sktime/forecasting/base/adapters/_tbats.py
imports: import numpy
  import pandas
  from sktime.forecasting.base import BaseForecaster
  from sktime.utils.validation import check_n_jobs
  from sktime.utils.validation.forecasting import check_sp
label_desc: Use image node_id 4 for calling the _TbatsAdapter obj's underlying member method code with example usage: obj._fit(y, X, fh) and returns: self