diff --git a/bin/score_outcomes/main.py b/bin/score_outcomes/main.py index ff42bb95..ca7ec608 100644 --- a/bin/score_outcomes/main.py +++ b/bin/score_outcomes/main.py @@ -66,9 +66,8 @@ each pass's first and by 🔴 findings: Spearman's rank correlation, from -1 to them exactly; none where every chunk held the same level, or the same outcome. It counts only chunks that shipped one item, since a chunk measures all its items at once. It leaves out the chunks never replayed, which may hold only part of a pull request. It reports a score only once 10 of the chunks -it counts hold it and its outcomes. Where more than half of the chunks it counts for L hold no 🔴, it -gives L's rank correlation by review rounds alone, then the share of chunks with a 🔴 at each L, since -medians of 0 and a rank resting on the few chunks with a 🔴 tell a scorer little. +it counts hold it and its outcomes. Where more than half of the chunks it counts for L hold no 🔴, L's +line gives its rank correlation by review rounds alone. A second line gives the share of chunks with a 🔴 at each L. Then, newest first, each finished chunk's 🔴 and 🟡 findings with its misread findings, for every chunk whose round titles count them: code health's counter-signal in diff --git a/bin/score_outcomes/results.py b/bin/score_outcomes/results.py index 32d6d0f0..a6fc4670 100644 --- a/bin/score_outcomes/results.py +++ b/bin/score_outcomes/results.py @@ -105,7 +105,7 @@ def report(results: list[Result]) -> list[str]: continue guesses, rounds, red = ([row[column] for row in rows] for column in range(3)) if name == "L" and red.count(0) * 2 > len(red): - # Where most chunks hold no 🔴 every median reads 0 and the rank rests on the few that have one, so L is read by how often a chunk has one. + # Where most chunks hold no 🔴, the rank by 🔴 findings rests on the few that have one, so L is read by how often a chunk has one. lines.append(f"- {name}, by review rounds past each pass's first: rank correlation {correlations([rank_correlation(guesses, rounds)])} ({plural(len(rows), 'chunk')})") lines.append(f"- {name}, by the share of chunks with a 🔴, since most of the {len(rows)} chunks hold none: " + ", ".join(f"{guess} → {sum(1 for at, count in zip(guesses, red) if at == guess and count)} of {plural(guesses.count(guess), 'chunk')}" for guess in sorted(set(guesses)))) continue @@ -141,7 +141,7 @@ def too_few(held: int, name: str, what: str) -> str: def correlations(found: list[float | None]) -> str: - """Each rank correlation signed to two places, `none` where it is undefined, with the reason once after them.""" + """Each rank correlation as a signed number with two decimals, or `none` where it is undefined, then the reason a correlation is undefined once if any is.""" undefined = ", since every chunk held one value" if None in found else "" return listed(["none" if value is None else f"{value:+.2f}" for value in found], "and") + undefined