class_docstr: A common model term.
class_docstr_tok: ["A","common","model","term","."]
code: def __init__(self, term, prior, prefix=None):
      self.term = term
      self.prior = prior
      self.data = np.squeeze(term.data)
      self.prefix = prefix
  
      if (
          self.categorical
          and len(self.levels) == 1
          and (self.data == self.data[0]).all()
      ):
          raise ValueError(
              f"The term '{self.name}' has only 1 category!"
          )
  
      if (
          not self.categorical
          and self.kind not in ("intercept", "offset")
          and np.all(self.data == self.data[0])
      ):
          raise ValueError(f"The term '{self.name}' is constant!")
  
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 1 to create a new CommonTerm object from inherited base classes: BaseTerm with example: obj = CommonTerm(term, prior, prefix)