MCPcopy Create free account
hub / github.com/InternScience/SciReason / highlight

Function highlight

opencompass/summarizers/multi_model.py:89–95  ·  view source on GitHub ↗
(row: List[str], meta_col_count: int = META_COL_COUNT)

Source from the content-addressed store, hash-verified

87
88
89def highlight(row: List[str], meta_col_count: int = META_COL_COUNT) -> List[str]:
90 new_row = [_ for _ in row]
91 all_scores = [to_float(_) for _ in row[meta_col_count:]]
92 best_indeice = [i + meta_col_count for i, s in enumerate(all_scores) if s > np.max(all_scores) - EPS]
93 for best_index in best_indeice:
94 new_row[best_index] = green_bold(row[best_index])
95 return new_row
96
97
98class MultiModelSummarizer:

Callers 2

summarizeMethod · 0.85
show_groupMethod · 0.85

Calls 2

to_floatFunction · 0.85
green_boldFunction · 0.85

Tested by

no test coverage detected