MCPcopy Create free account
hub / github.com/TIGER-AI-Lab/TheoremExplainAgent / calculate_overall_score

Function calculate_overall_score

evaluate.py:196–208  ·  view source on GitHub ↗

Calculate the overall score from evaluation results. Args: result (Dict): Dictionary containing evaluation results. Returns: float: The calculated overall score.

(result: Dict)

Source from the content-addressed store, hash-verified

194
195
196def calculate_overall_score(result: Dict) -> float:
197 """
198 Calculate the overall score from evaluation results.
199
200 Args:
201 result (Dict): Dictionary containing evaluation results.
202
203 Returns:
204 float: The calculated overall score.
205 """
206 scores = extract_scores(result)
207 overall_score = calculate_geometric_mean(scores)
208 return overall_score
209
210
211def process_topic_name(topic_name: str) -> str:

Callers 1

process_theoremFunction · 0.85

Calls 2

calculate_geometric_meanFunction · 0.90
extract_scoresFunction · 0.85

Tested by

no test coverage detected