class_docstr: Base Class for Building a model
class_docstr_tok: ["Base","Class","for","Building","a","model"]
docstr: Fits the model to the data
  
  :param ts_df The time series data to be used for fitting the model
  :type ts_df pd.DataFrame
  
  :param target_col The column name of the target time series that needs to be modeled.
  All other columns will be considered as exogenous variables (if applicable to method)
  :type target_col str
  
  :param cv: Number of folds to use for cross validation.
  Number of observations in the Validation set for each fold = forecast period
  If None, a single fold is used
  :type cv Optional[int]
  
  :rtype object
docstr_tok: ["Fits","the","model","to","the","data",":","param","ts_df","The","time","series","data","to","be","used","for","fitting","the","model",":","type","ts_df","pd.DataFrame",":","param","target_col","The","column","name","of","the","target","time","series","that","needs","to","be","modeled",".","All","other","columns","will","be","considered","as","exogenous","variables","(","if","applicable","to","method",")",":","type","target_col","str",":","param","cv",":","Number","of","folds","to","use","for","cross","validation",".","Number","of","observations","in","the","Validation","set","for","each","fold","=","forecast","period","If","None",",","a","single","fold","is","used",":","type","cv","Optional","[","int","]",":","rtype","object"]
code: def fit(
      self,
      ts_df: pd.DataFrame,
      target_col: str,
      cv: Optional[int] = None,
  ) -> object:
      """
      Fits the model to the data
  
      :param ts_df The time series data to be used for fitting the model
      :type ts_df pd.DataFrame
  
      :param target_col The column name of the target time series that needs to be modeled.
      All other columns will be considered as exogenous variables (if applicable to method)
      :type target_col str
  
      :param cv: Number of folds to use for cross validation.
      Number of observations in the Validation set for each fold = forecast period
      If None, a single fold is used
      :type cv Optional[int]
  
      :rtype object
      """
  
file_path: Auto_TS/auto_ts/models/build_base.py
imports: from typing import Optional, List
  from abc import ABC, abstractmethod
  import pandas
  from pandas.core.generic import NDFrame
label_desc: Use image node_id 2 for calling the BuildBase obj's underlying member method code with example usage: obj.fit(ts_df, target_col, cv) without return types