MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / is_best

Function is_best

experiments/human_eval/draw_interest_drift_heatmap.py:113–116  ·  view source on GitHub ↗
(values: list[float], row_idx: int, direction: str)

Source from the content-addressed store, hash-verified

111
112
113def is_best(values: list[float], row_idx: int, direction: str) -> bool:
114 score = score_for_metric(values, row_idx, direction)
115 best = max(score_for_metric(values, idx, direction) for idx in range(len(values)))
116 return abs(score - best) < 1e-12
117
118
119def draw_png() -> Image.Image:

Callers

nothing calls this directly

Calls 1

score_for_metricFunction · 0.85

Tested by

no test coverage detected