(self)
Return parameters of the best booster.
Return parameters of the best booster.
Return parameters of the best booster .
def best_params(self) -> Dict[str, Any]:
        """Return parameters of the best booster."""
        try:
            return json.loads(self.study.best_trial.system_attrs[_LGBM_PARAMS_KEY])
        except ValueError:
            # Return the default score because no trials have completed.
            params = copy.deepcopy(_DEFAULT_LIGHTGBM_PARAMETERS)
            # self.lgbm_params may contain parameters given by users.
            params.update(self.lgbm_params)
            return params
def best_params ( self ) -> Dict [ str , Any ] : try : return json . loads ( self . study . best_trial . system_attrs [ _LGBM_PARAMS_KEY ] ) except ValueError : # Return the default score because no trials have completed. params = copy . deepcopy ( _DEFAULT_LIGHTGBM_PARAMETERS ) # self.lgbm_params may contain parameters given by users. params . update ( self . lgbm_params ) return params