in src/epam/auto_llm_eval/evaluator.py [0:0]
def get_weighted_score(self) -> float:
"""
Return the weighted score based on the probabilities.
Calculates a weighted average of scores, where each score is weighted
by its probability.
Returns:
float: The weighted score, rounded to two decimal places.
"""
weighted_score: float = sum(
[score * prob for (score, prob) in self.probabilities]
)
weighted_score = np.round(weighted_score, 2)
return weighted_score