rogermt commited on
Commit
542ca67
·
verified ·
1 Parent(s): 30bfc95

Fix: unsolved_count × 0 in est_lb — only count solved score

Browse files
Files changed (1) hide show
  1. neurogolf_solver/submission.py +2 -4
neurogolf_solver/submission.py CHANGED
@@ -108,7 +108,6 @@ def generate_submission(output_dir, results, costs_dict, active_tasks):
108
  for tn in sorted(costs_dict.keys()):
109
  w.writerow([f'task{tn:03d}', costs_dict[tn]])
110
 
111
- # Calculate estimated LB score
112
  unsolved_count = len(active_tasks) - len(results)
113
  total_score = sum(max(1.0, 25.0 - math.log(max(1, cost))) for cost in costs_dict.values())
114
 
@@ -118,7 +117,6 @@ def generate_submission(output_dir, results, costs_dict, active_tasks):
118
  'zip_path': zip_path,
119
  'zip_size': zip_size,
120
  'csv_path': csv_path,
121
- 'est_lb': total_score + unsolved_count * 1.0,
122
  'total_score': total_score,
123
  'unsolved_count': unsolved_count,
124
  'oversized': oversized,
@@ -144,6 +142,6 @@ def print_summary(results, submission_info, elapsed):
144
  for f, sz in submission_info['oversized']:
145
  print(f" {f}: {sz / 1024:.1f} KB")
146
 
147
- print(f"Estimated LB score: {submission_info['est_lb']:.1f} "
148
- f"(solved: {submission_info['total_score']:.1f} + unsolved: {submission_info['unsolved_count']}x1.0)")
149
  print(f"Written: {submission_info['zip_path']} | {submission_info['csv_path']}")
 
108
  for tn in sorted(costs_dict.keys()):
109
  w.writerow([f'task{tn:03d}', costs_dict[tn]])
110
 
 
111
  unsolved_count = len(active_tasks) - len(results)
112
  total_score = sum(max(1.0, 25.0 - math.log(max(1, cost))) for cost in costs_dict.values())
113
 
 
117
  'zip_path': zip_path,
118
  'zip_size': zip_size,
119
  'csv_path': csv_path,
 
120
  'total_score': total_score,
121
  'unsolved_count': unsolved_count,
122
  'oversized': oversized,
 
142
  for f, sz in submission_info['oversized']:
143
  print(f" {f}: {sz / 1024:.1f} KB")
144
 
145
+ print(f"Estimated LB score: {submission_info['total_score']:.1f}")
146
+ print(f"Solved: {len(results)} | Unsolved: {submission_info['unsolved_count']}")
147
  print(f"Written: {submission_info['zip_path']} | {submission_info['csv_path']}")