class_docstr: A dlm model containing all tuning methods
      
docstr: Automatic tuning of the discounting factors. 
  
  The method will call the model tuner class to use the default parameters
  to tune the discounting factors and change the discount factor permenantly.
  User needs to refit the model after tuning.
  
  If user wants a more refined tuning and not change any property of the
  existing model, they should opt to use the @modelTuner class.
docstr_tok: ["Automatic","tuning","of","the","discounting","factors",".","The","method","will","call","the","model","tuner","class","to","use","the","default","parameters","to","tune","the","discounting","factors","and","change","the","discount","factor","permenantly",".","User","needs","to","refit","the","model","after","tuning",".","If","user","wants","a","more","refined","tuning","and","not","change","any","property","of","the","existing","model",",","they","should","opt","to","use","the","@","modelTuner","class","."]
code: def tune(self, maxit=100):
      """Automatic tuning of the discounting factors.
  
      The method will call the model tuner class to use the default parameters
      to tune the discounting factors and change the discount factor permenantly.
      User needs to refit the model after tuning.
  
      If user wants a more refined tuning and not change any property of the
      existing model, they should opt to use the @modelTuner class.
      """
      simpleTuner = modelTuner()
  
      if self._logger.isEnabledFor(logging.INFO):
          self.fitForwardFilter()
          self._logger.info(
              f"The current mse is { str(self.getMSE()) }."
          )
  
      simpleTuner.tune(untunedDLM=self, maxit=maxit)
      self._setDiscounts(
          simpleTuner.getDiscounts(), change_component=True
      )
  
      if self._logger.isEnabledFor(logging.INFO):
          self.fitForwardFilter()
          self._logger.info(f"The new mse is { str(self.getMSE()) }.")
  
imports: from pydlm.tuner._dlmTune import _dlmTune
  from pydlm.tuner.dlmTuner import modelTuner
  import logging
label_desc: Use image node_id 2 for calling the dlmTuneModule obj's underlying member method code with example usage: obj.tune(maxit) without return types