File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -176,12 +176,12 @@ def process_item(example):
176
176
177
177
logger .info (f"Average Metric: { ncorrect } / { ntotal } ({ round (100 * ncorrect / ntotal , 1 )} %)" )
178
178
179
- # Rename the 'correct' column to the name of the metric object
180
- metric_name = metric .__name__ if isinstance (metric , types .FunctionType ) else metric .__class__ .__name__
181
- # Construct a pandas DataFrame from the results
182
- result_df = self ._construct_result_table (results , metric_name )
183
-
184
179
if display_table :
180
+ # Rename the 'correct' column to the name of the metric object
181
+ metric_name = metric .__name__ if isinstance (metric , types .FunctionType ) else metric .__class__ .__name__
182
+ # Construct a pandas DataFrame from the results
183
+ result_df = self ._construct_result_table (results , metric_name )
184
+
185
185
self ._display_result_table (result_df , display_table , metric_name )
186
186
187
187
if return_all_scores and return_outputs :
You can’t perform that action at this time.
0 commit comments