class_docstr: A common model term.
class_docstr_tok: ["A","common","model","term","."]
code: def coords(self):
      # Obtain pymc coordinates, only for categorical components of a term.
      # A categorical component can have up to two coordinates in the same model if it is
      # includied with both reduced and full rank encodings.
      coords = {}
      if self.categorical:
          name = self.name + "_dim"
          coords[name] = self.levels
      elif self.data.ndim > 1 and self.data.shape[1] > 1:
          name = self.name + "_dim"
          coords[name] = np.arange(self.data.shape[1])
      return coords
  
file_path: bambi/bambi/terms/common.py
imports: import numpy
  import formulae.terms
  from bambi.terms.base import BaseTerm
label_desc: Use image node_id 5 for calling the CommonTerm obj's underlying member method code with example usage: obj.coords() and returns: coords