Spaces:
Runtime error
Runtime error
Commit ·
b74fa08
1
Parent(s): b8f6820
fix: trust score sorting to higher is better
Browse files- src/populate.py +2 -2
src/populate.py
CHANGED
|
@@ -33,9 +33,9 @@ def get_leaderboard_df(eval_results_path, eval_requests_path, cols, benchmark_co
|
|
| 33 |
print(f"Warning: Column '{col}' missing, adding empty column")
|
| 34 |
all_df[col] = 10.0 # Default to highest risk
|
| 35 |
|
| 36 |
-
# Sort by Trust Score (ascending -
|
| 37 |
if auto_eval_column_attrs.overall_risk.name in all_df.columns:
|
| 38 |
-
all_df = all_df.sort_values(by=[auto_eval_column_attrs.overall_risk.name])
|
| 39 |
|
| 40 |
return all_df
|
| 41 |
|
|
|
|
| 33 |
print(f"Warning: Column '{col}' missing, adding empty column")
|
| 34 |
all_df[col] = 10.0 # Default to highest risk
|
| 35 |
|
| 36 |
+
# Sort by Trust Score (ascending - higher is better)
|
| 37 |
if auto_eval_column_attrs.overall_risk.name in all_df.columns:
|
| 38 |
+
all_df = all_df.sort_values(by=[auto_eval_column_attrs.overall_risk.name], ascending=False)
|
| 39 |
|
| 40 |
return all_df
|
| 41 |
|