File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 8484
8585 # Check if the file exists
8686 if not os .path .exists (file_path ):
87- print (f"⚠️ Warning: File not found - { file_path } . Skipping this category." )
87+ print (f"Warning: File not found - { file_path } . Skipping this category." )
8888 continue
8989
9090 # Load JSON data
9494 # Extract relevant data
9595 category_results = []
9696 for result in data .get ("Results" , []): # Use .get() to avoid KeyError
97- print (6 )
9897 for key in llm_parameters :
99- print ("---" + key )
10098 if key .lower () in result ["LLM" ].lower ():
101- print (44 )
10299 category_results .append (
103100 {
104101 "Model" : key ,
111108
112109 # Skip if no data
113110 if not category_results :
114- print (f"⚠️ No valid results found in { file_path } . Skipping..." )
111+ print (f"No valid results found in { file_path } . Skipping..." )
115112 continue
116113
117114 # Convert to DataFrame
156153 # Save figure
157154 plt .legend ()
158155 plt .savefig (save_path )
159- print (f"✅ Saved plot: { save_path } " )
156+ print (f"Saved plot: { save_path } " )
160157 if "-nogui" not in sys .argv :
161158 plt .show ()
You can’t perform that action at this time.
0 commit comments