@@ -569,7 +569,10 @@ def main():
569569
570570 total_correct = sum (stats ["correct" ] for stats in dataset_stats .values ())
571571 total_samples = sum (stats ["total" ] for stats in dataset_stats .values ())
572- overall_accuracy = (total_correct / total_samples * 100 ) if total_samples > 0 else 0.0
572+ overall_accuracy = (
573+ total_correct /
574+ total_samples *
575+ 100 ) if total_samples > 0 else 0.0
573576
574577 # Calculate weighted final score
575578 final_score = 0.0
@@ -589,14 +592,18 @@ def main():
589592 "max_component_score" : max_component_score
590593 }
591594
592- final_score_percentage = (final_score / max_score * 100 ) if max_score > 0 else 0.0
595+ final_score_percentage = (
596+ final_score /
597+ max_score *
598+ 100 ) if max_score > 0 else 0.0
593599
594600 # Print results
595601 print ("\n " + "=" * 80 )
596602 print ("MLPerf Accuracy Evaluation Results" )
597603 print ("=" * 80 )
598604 print (f"Total samples evaluated: { total_samples } " )
599- print (f"Overall raw accuracy: { overall_accuracy :.2f} % ({ total_correct } /{ total_samples } )" )
605+ print (
606+ f"Overall raw accuracy: { overall_accuracy :.2f} % ({ total_correct } /{ total_samples } )" )
600607 print ("=" * 80 )
601608
602609 print ("\n Per-Dataset Breakdown:" )
@@ -631,7 +638,8 @@ def main():
631638 print (f" = { final_score :.2f} " )
632639 print (f"Max: = { ' + ' .join (max_parts )} " )
633640 print (f" = { max_score :.2f} " )
634- print (f"\n FINAL SCORE: { final_score_percentage :.2f} % ({ final_score :.2f} /{ max_score :.2f} )" )
641+ print (
642+ f"\n FINAL SCORE: { final_score_percentage :.2f} % ({ final_score :.2f} /{ max_score :.2f} )" )
635643 print ("=" * 80 )
636644
637645 # Save detokenized outputs to pickle if requested
0 commit comments