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

Function spearman

experiments/analysis/analyze_human_score_correlation.py:55–58  ·  view source on GitHub ↗
(pairs: List[Tuple[float, float]])

Source from the content-addressed store, hash-verified

53
54
55def spearman(pairs: List[Tuple[float, float]]) -> float:
56 xs, ys = zip(*pairs)
57 ranked_pairs = list(zip(ranks(list(xs)), ranks(list(ys))))
58 return pearson(ranked_pairs)
59
60
61def kendall_tau(pairs: List[Tuple[float, float]]) -> float:

Callers 1

build_resultFunction · 0.85

Calls 2

ranksFunction · 0.85
pearsonFunction · 0.70

Tested by

no test coverage detected