docstr: predict response, sum of smoothed components
  TODO: What's this in the case of GLM, corresponds to X*beta ?
docstr_tok: ["predict","response",",","sum","of","smoothed","components","TODO",":","What","'s","this","in","the","case","of","GLM",",","corresponds","to","X","*","beta","?"]
code: def predict(self, exog):
      """predict response, sum of smoothed components
      TODO: What's this in the case of GLM, corresponds to X*beta ?
      """
      # note: sum is here over axis=0,
      # TODO: transpose in smoothed and sum over axis=1
  
      # BUG: there is some inconsistent orientation somewhere
      # temporary hack, will not work for 1d
      # print dir(self)
      # print 'self.nobs, self.k_vars', self.nobs, self.k_vars
      exog_smoothed = self.smoothed(exog)
      # print 'exog_smoothed.shape', exog_smoothed.shape
      if exog_smoothed.shape[0] == self.k_vars:
          import warnings
  
          warnings.warn(
              "old orientation, colvars, will go away", FutureWarning
          )
          return np.sum(self.smoothed(exog), axis=0) + self.alpha
      if exog_smoothed.shape[1] == self.k_vars:
          return np.sum(exog_smoothed, axis=1) + self.alpha
      else:
          raise ValueError("shape mismatch in predict")
  
imports: import numpy
  from statsmodels.genmod import families
  from statsmodels.sandbox.nonparametric.smoothers import PolySmoother
  from statsmodels.genmod.generalized_linear_model import GLM
  from statsmodels.tools.sm_exceptions import IterationLimitWarning, iteration_limit_doc
  import warnings
label_desc: Use image node_id 4 for calling the Results obj's underlying member method code with example usage: obj.predict(exog) and returns: unknown, unknown