in src/epam/auto_llm_eval/evaluator.py [0:0]
def is_confident(self, threshold: float = 0.9) -> bool:
"""
Determine if the model is confident about the score.
Args:
threshold (float, optional): The probability threshold for
confidence. Defaults to 0.9.
Returns:
bool: True if the highest probability exceeds the threshold,
False otherwise.
"""
(_, max_prob) = max(self.probabilities, key=lambda x: x[1])
return max_prob > threshold