From 9ffbe7557bc19797ec6a8357c5f46ddaa1427723 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Thu, 11 Jan 2024 13:30:01 -0800 Subject: [PATCH] Clean up descriptions and summary of game analytics Clean up descriptions and summary of game analytics so the output is easier to understand. - Describe the first table, which is how often black wins. - Make it clear that the second table includes handicap by describing the "predicted winner" rather than "higher rating". - Fix the final summary to use the same language as the third table. Both are showing measures of "prediction cost". Previously, the summary said "stronger wins", which implied it matched the second table. --- analysis/util/TallyGameAnalytics.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/analysis/util/TallyGameAnalytics.py b/analysis/util/TallyGameAnalytics.py index 812de9c..d840723 100644 --- a/analysis/util/TallyGameAnalytics.py +++ b/analysis/util/TallyGameAnalytics.py @@ -167,8 +167,8 @@ def print_compact_stats(self) -> None: # "| {prediction_h1:>7.5f} | {prediction_h2:>7.5f} | {unexp_change:>8.5%} |".format( print("") print("") - print("| Algorithm name | Stronger wins | h0 | h1 | h2 |") - print("|:---------------|--------------:|---:|---:|--------------:|") + print("| Algorithm name | Rating quality | h0 | h1 | h2 |") + print("|:---------------|---------------:|---:|---:|---:|") print( "| {name:>s} | {prediction:>13.1%} | {prediction_h0:>5.1%} " "| {prediction_h1:>5.1%} | {prediction_h2:>5.1%} |".format( @@ -232,6 +232,9 @@ def print_inspected_players(self) -> None: ) def print_handicap_performance(self) -> None: + print("") + print("") + print("How often black wins:") for size in [9, 13, 19, ALL]: print("") if size == ALL: @@ -257,7 +260,7 @@ def print_handicap_performance(self) -> None: def print_handicap_prediction(self) -> None: print("") print("") - print("How often does the player with the higher rating win.") + print("How often the predicted winner wins:") for size in [9, 13, 19, ALL]: print("") if size == ALL: @@ -521,7 +524,7 @@ def date(timestamp) -> str: def print_handicap_cost(self) -> None: print("") print("") - print("Quality of the rating. (lower is better)") + print("Quality of the rating (lower is better):") for size in [9, 13, 19, ALL]: print("") if size == ALL: