class_docstr: The base uncertainty model.
  
  Attributes
  ----------
  uncertainty_dict : `dict` [`str`, any]
      The uncertainty model specification. It should have the following keys:
  
              "uncertainty_method": a string that is in
                  `~greykite.sklearn.uncertainty.uncertainty_methods.UncertaintyMethodEnum`.
              "params": a dictionary that includes any additional parameters needed by the uncertainty method.
  
  uncertainty_method : `str` or None
      The name of the uncertainty model.
      Must be in `~greykite.sklearn.uncertainty.uncertainty_methods.UncertaintyMethodEnum`.
      This parameter is a required parameter by all subclasses.
  params : `dict` [`str`, any] or None
      The parameters to be fed into the uncertainty model.
      This class tries to populate ``value_col`` if ``cst.VALUE_COL`` is found in the training df,
      because ``value_col`` is a common parameter used by many subclasses.
  train_df : `pandas.DataFrame` or None
      The data used to fit the uncertainty model.
  uncertainty_model : any or None
      The uncertainty model.
  pred_df : `pandas.DataFrame`
      The prediction result df.
class_docstr_tok: ["The","base","uncertainty","model",".","Attributes","--","--","--","--","--","uncertainty_dict",":","`","dict","`","[","`","str","`",",","any","]","The","uncertainty","model","specification",".","It","should","have","the","following","keys",":","``","uncertainty_method","''",":","a","string","that","is","in","`","~greykite.sklearn.uncertainty.uncertainty_methods.UncertaintyMethodEnum","`",".","``","params","''",":","a","dictionary","that","includes","any","additional","parameters","needed","by","the","uncertainty","method",".","uncertainty_method",":","`","str","`","or","None","The","name","of","the","uncertainty","model",".","Must","be","in","`","~greykite.sklearn.uncertainty.uncertainty_methods.UncertaintyMethodEnum","`",".","This","parameter","is","a","required","parameter","by","all","subclasses",".","params",":","`","dict","`","[","`","str","`",",","any","]","or","None","The","parameters","to","be","fed","into","the","uncertainty","model",".","This","class","tries","to","populate","``","value_col","``","if","``","cst.VALUE_COL","``","is","found","in","the","training","df",",","because","``","value_col","``","is","a","common","parameter","used","by","many","subclasses",".","train_df",":","`","pandas.DataFrame","`","or","None","The","data","used","to","fit","the","uncertainty","model",".","uncertainty_model",":","any","or","None","The","uncertainty","model",".","pred_df",":","`","pandas.DataFrame","`","The","prediction","result","df","."]
docstr: Fits the uncertainty model.
  
  Parameters
  ----------
  train_df : `pandas.DataFrame`
      The training data.
docstr_tok: ["Fits","the","uncertainty","model",".","Parameters","--","--","--","--","--","train_df",":","`","pandas.DataFrame","`","The","training","data","."]
code: def fit(self, train_df: pd.DataFrame):
      """Fits the uncertainty model.
  
      Parameters
      ----------
      train_df : `pandas.DataFrame`
          The training data.
      """
      self.train_df = train_df.copy()
  
file_path: greykite/greykite/sklearn/uncertainty/base_uncertainty_model.py
imports: from abc import abstractmethod
  from typing import Dict
  from typing import Optional
  import pandas
  from greykite.common import constants
  from greykite.sklearn.uncertainty.exceptions import UncertaintyError
label_desc: Use image node_id 3 for calling the BaseUncertaintyModel obj's underlying member method code with example usage: obj.fit(train_df) without return types