docstr: Create a term for a HSGP model component
  
  Parameters
  ----------
  term : formulae.terms.terms.Term
      A term that was created with ``hsgp(...)``. The caller is an instance of ``HSGP()``.
  prior : dict
      The keys are the names of the parameters of the covariance function and the values are
      instances of ``bambi.Prior`` or other values that are accepted by the covariance
      function.
  prefix : str
      It is used to indicate the term belongs to the component of a non-parent parameter.
      Defaults to ``None``.
docstr_tok: ["Create","a","term","for","a","HSGP","model","component","Parameters","--","--","--","--","--","term",":","formulae.terms.terms.Term","A","term","that","was","created","with","``","hsgp","(","...",")","``",".","The","caller","is","an","instance","of","``","HSGP","(",")","``",".","prior",":","dict","The","keys","are","the","names","of","the","parameters","of","the","covariance","function","and","the","values","are","instances","of","``","bambi.Prior","``","or","other","values","that","are","accepted","by","the","covariance","function",".","prefix",":","str","It","is","used","to","indicate","the","term","belongs","to","the","component","of","a","non-parent","parameter",".","Defaults","to","``","None","``","."]
code: def __init__(self, term, prior, prefix=None):
      """Create a term for a HSGP model component
  
      Parameters
      ----------
      term : formulae.terms.terms.Term
          A term that was created with ``hsgp(...)``. The caller is an instance of ``HSGP()``.
      prior : dict
          The keys are the names of the parameters of the covariance function and the values are
          instances of ``bambi.Prior`` or other values that are accepted by the covariance
          function.
      prefix : str
          It is used to indicate the term belongs to the component of a non-parent parameter.
          Defaults to ``None``.
      """
      self.term = term
      self.prior = prior
      self.prefix = prefix
      self.hsgp_attributes = get_hsgp_attributes(term)
      self.hsgp = None
      properties_names = (
          "c",
          "by_levels",
          "cov",
          "share_cov",
          "scale",
          "iso",
          "centered",
          "drop_first",
          "variables_n",
          "groups_n",
          "mean",
          "maximum_distance",
      )
      self.__init_properties(properties_names)
      # When prior is none at initialization, then automatic priors are used
      self.automatic_priors = self.prior is None
  
imports: from functools import partial
  import numpy
  import formulae.terms
  from bambi.terms.base import BaseTerm, VALID_PRIORS
label_desc: Use image node_id 1 to create a new HSGPTerm object from inherited base classes: BaseTerm with example: obj = HSGPTerm(term, prior, prefix)