class_docstr: A simple linear model built on statmodels.
code: def __init__(self, graph, estimator_type="linear", **kwargs):
      self._supported_models = {
          "linear": OLS,
          "OLS": OLS,
          "GLS": GLS,
          "WLS": WLS,
      }
      if estimator_type not in self._supported_models.keys():
          raise NotImplementedError(
              "We currently only support OLS, GLS, and WLS. Please specify which you would like to use."
          )
      else:
          self.estimator = self._supported_models[estimator_type]
  
file_path: pgmpy/pgmpy/estimators/LinearModel.py
imports: import statsmodels.api
  from statsmodels.api import OLS, GLS, WLS
label_desc: Use image node_id 1 to create a new LinearEstimator object from inherited base classes: object with example: obj = LinearEstimator(graph, estimator_type)