docstr: Get the value of L
  It's of shape (term.groups_n, term.variables_n). It's computed by variable and group.
docstr_tok: ["Get","the","value","of","L","It","'s","of","shape","(","term.groups_n",",","term.variables_n",")",".","It","'s","computed","by","variable","and","group","."]
code: def L(self):
      """Get the value of L
      It's of shape (term.groups_n, term.variables_n). It's computed by variable and group.
      """
      if self.c is not None:
          if self.by_levels is None:
              S = np.max(np.abs(self.data - self.mean), axis=0)
          else:
              S = np.zeros_like(self.c, dtype="float")
              for i in range(len(self.by_levels)):
                  S[i] = np.max(
                      np.abs(self.data_centered[self.by == i]), axis=0
                  )
          return S * self.c
      return self.hsgp_attributes["L"]
  
imports: from functools import partial
  import numpy
  import formulae.terms
  from bambi.terms.base import BaseTerm, VALID_PRIORS
label_desc: Use image node_id 9 for calling the HSGPTerm obj's underlying member method code with example usage: obj.L() and returns: self, unknown