()
| 76 | |
| 77 | |
| 78 | def main(): |
| 79 | parser = argparse.ArgumentParser(description="CDF plot of total created files at a specific round") |
| 80 | parser.add_argument("--round", type=int, default=15, help="Target round (default: 15)") |
| 81 | args = parser.parse_args() |
| 82 | |
| 83 | with open(DATA_CACHE) as f: |
| 84 | print(f"Loading data from {DATA_CACHE}") |
| 85 | data = [json.loads(line) for line in f] |
| 86 | print(f"Found {len(data)} player-tournament entries in cache.") |
| 87 | |
| 88 | print(f"\n=== Calculating Total Created Files at Round {args.round} ===") |
| 89 | model_to_total_files = calculate_total_created_files_at_round(data, target_round=args.round) |
| 90 | |
| 91 | for model, total_files_list in sorted(model_to_total_files.items()): |
| 92 | print(f"{model}: {len(total_files_list)} tournaments, mean={sum(total_files_list) / len(total_files_list):.1f}") |
| 93 | |
| 94 | print("\n=== Plotting CDF ===") |
| 95 | plot_cdf_total_created_files(model_to_total_files, target_round=args.round) |
| 96 | |
| 97 | |
| 98 | if __name__ == "__main__": |
no test coverage detected