parameters: (self, filename, num_iteration=-1)
docstring: Save Booster to file.
  
          Parameters
          ----------
          filename : string
              Filename to save Booster.
          num_iteration: int, optional (default=-1)
              Index of the iteration that should to saved.
              If <0, the best iteration (if exists) is saved.
docstring_summary: Save Booster to file.
docstring_tokens: Save Booster to file .
function: def save_model(self, filename, num_iteration=-1):
          """Save Booster to file.
  
          Parameters
          ----------
          filename : string
              Filename to save Booster.
          num_iteration: int, optional (default=-1)
              Index of the iteration that should to saved.
              If <0, the best iteration (if exists) is saved.
          """
          if num_iteration <= 0:
              num_iteration = self.best_iteration
          _safe_call(_LIB.LGBM_BoosterSaveModel(
              self.handle,
              ctypes.c_int(num_iteration),
              c_str(filename)))
          _save_pandas_categorical(filename, self.pandas_categorical)
function_tokens: def save_model ( self , filename , num_iteration = - 1 ) : if num_iteration <= 0 : num_iteration = self . best_iteration _safe_call ( _LIB . LGBM_BoosterSaveModel ( self . handle , ctypes . c_int ( num_iteration ) , c_str ( filename ) ) ) _save_pandas_categorical ( filename , self . pandas_categorical )