(self)
Return the score of the best booster.
Return the score of the best booster.
Return the score of the best booster .
def best_score(self) -> float:
        """Return the score of the best booster."""
        try:
            return self.study.best_value
        except ValueError:
            # Return the default score because no trials have completed.
            return -np.inf if self.higher_is_better() else np.inf
def best_score ( self ) -> float : try : return self . study . best_value except ValueError : # Return the default score because no trials have completed. return - np . inf if self . higher_is_better ( ) else np . inf