KeenWoo commited on
Commit
973f3f7
·
verified ·
1 Parent(s): 8479fc5

Update evaluate.py

Browse files
Files changed (1) hide show
  1. evaluate.py +3 -3
evaluate.py CHANGED
@@ -365,7 +365,7 @@ def run_comprehensive_evaluation(
365
 
366
  df_display = df.rename(columns={"context_precision": "Ctx. Precision", "context_recall": "Ctx. Recall"})
367
  table_rows = df_display.values.tolist()
368
- headers = df_display.columns.tolist
369
 
370
 
371
  output_path = "evaluation_results.csv"
@@ -399,7 +399,7 @@ def run_comprehensive_evaluation(
399
  except Exception as e:
400
  print(f"WARNING: Could not build confusion matrix: {e}")
401
 
402
- # return summary_text, table_rows, headers
403
- return summary_text, table_rows
404
 
405
  ## END
 
365
 
366
  df_display = df.rename(columns={"context_precision": "Ctx. Precision", "context_recall": "Ctx. Recall"})
367
  table_rows = df_display.values.tolist()
368
+ headers = df_display.columns.tolist()
369
 
370
 
371
  output_path = "evaluation_results.csv"
 
399
  except Exception as e:
400
  print(f"WARNING: Could not build confusion matrix: {e}")
401
 
402
+ return summary_text, table_rows, headers
403
+ # return summary_text, table_rows
404
 
405
  ## END