code: def _update_param(self):
          r
  
          # Update the gamma parameter.
          if not isinstance(self._beta_update, type(None)):
              self._beta = self._beta_update(self._beta)
  
          # Update lambda parameter.
          if not isinstance(self._lambda_update, type(None)):
              self._lambda = self._lambda_update(self._lambda)
docs: r"""Update parameters
  
          This method updates the values of the algorthm parameters with the
          methods provided